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 / rajshekar

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

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to count duplicated values in a column in ms sql server?

521


Why use identity in sql server?

568


how can you select rexcord(rows) from table A which is not present in Table B . Id being the FK in Table B referencing to ID Table A

1221


Do you know what is sql injection?

545


Where cross join is used?

519






What is 'Join' and explain its various types.

627


What is sql stored procedure?

601


Can binary strings be converted into numeric or float data types?

561


your sql server is running out of disk space. You notice that there are several large files with ldf extensions what are these files? : Sql server administration

576


What is the difference between left and right outer join?

547


Can we call stored procedure in view in sql server?

500


What is the difference between grant and with grant while giving permissions to the user?

513


What is difference between getdate and sysdatetime in sql server 2008?

602


How do I run a trace in sql server?

505


What is user defined stored procedures?

570