I have a table in which phno is one of the columns.i do have
some values in tht phno column.i need to update phno column
values with 0(zero) as prefix.give me a correct solution plz...

Answer Posted / anand k

Hi,

Yoy didn't mention the datatype of the column "phone
number"

prob the varchar datatype has used to the phno.

update <tablename>
set phno = cast(0 as varchar(1)) + phno

Is This Answer Correct ?    16 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Difference Between ORDER BY Clause and GROUP BY Clause in SQL?

636


What is the tcp/ip port on which sql server runs?

570


How can you tell if a database object is invalid?

619


What is sql server english query?

547


How do I schedule a sql server profiler trace?

542






Any one plz send me SQL Server Developer/DBA resume for 4 years experience

2184


How to create a user name in a database?

592


Explain the use of containers in ssis and also their types?

532


Other than truncate statement, which other command can by-pass the trigger on the tables?

624


How to delete an existing row with delete statements in ms sql server?

556


Differentiate between a primary key and a unique key.

604


Differentiate between SQL and ORACLE joins and write their syntax.

597


What are the diifferences between the ms sql server vs mysql?

659


What is a full text index?

497


What are the basic functions for master, msdb, model, tempdb databases?

594