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

update <table_name> set phno = Convert(int, '0' +
Convert(varchar(10),phno))

Is This Answer Correct ?    1 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the microsoft sql server delete command? : SQL Server Architecture

585


What is the xml datatype?

630


What are the difference between primary keys and foreign keys?

544


Why is normalisation important?

500


Explain the dirty pages?

580






What is ms sql server service broker?

524


How to disable a login name in ms sql server?

595


What are different type of Collation Sensitivity?

556


What is inline variable assignment?

607


Do you know what is blocking?

543


What stored procedure would you use to view lock information?

530


What is amo? : sql server analysis services, ssas

671


How you can change a cross join into an inner join?

553


How to name query output columns in ms sql server?

538


Explain the xml support sql server extends?

623