Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Explain DBCC?

1016


What are user-defined functions (udfs) in sql server?

1051


What is optimization and its types?

1039


where the connection string store in the database

2122


What is difference between delete & truncate commands?

1140


How to delete a database in ms sql server?

1322


What stored by the msdb?

1046


If user is owning any SQL Objects, can we drop that user

2133


Write a sql query to sort on different column name according to the parameters passed in the function?

964


What are parameterized reports?

204


How can you fetch alternate records from a table?

1015


When would you prefer to have a minimum number of indexes?

961


When would you use sql joins?

1028


What are some of the pros and cons of not dropping the sql server builtinadministrators group? : sql server security

1030


What is the sql case statement used for?

1133