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

Is a null value equal to anything? Can a space in a column be considered a null value? Why or why not?

1075


What is the default fill factor value?

1080


How do I find the sql server version?

1027


You are designing a database for your human resources department in the employee table, there is a field for social security number, which cannot contain null values if no value is given, you want a value of unknown to be inserted in this field what is the best approach?

1103


Define union, union all, minus, intersect?

979


define and explain the differences between clustered and non-clustered indexes.

1196


What does the on update no action do?

1028


What are the different types of collation sensitivity in sql server?

1113


What are the disadvantages of using querystrings to send data from one page to another?

1008


What is “begin trans”, “commit tran”, “rollback tran” and “savetran”?

1025


What are the tools available in market as an alternative to sql server reporting services?

131


What is spid in sql server profiler?

1108


List the different index configurations possible for a table?

934


Indexes are updated automatically is the full-text index also updated automatically?

1029


what is a correlated sub-query? : Sql server database administration

942