Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
ppatel112
Starting Member
35 Posts |
Posted - 2011-08-21 : 21:07:58
|
| Hi there,i have certain phone numbers in a column in sql db that doesnt have any space in them.for eg.0299216500how can i add a white space after two digits in the above number so that the number in the column becomesfor eg.02 99216500please advise.regards |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2011-08-21 : 21:35:34
|
| [code]SELECT STUFF(phoneno,3,0,' ') FROM Table[/code]------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/ |
 |
|
|
|
|
|