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 |
|
hizakemi
Starting Member
33 Posts |
Posted - 2006-01-29 : 13:31:18
|
| Hi, Needs helps.I have a name filed in my table in sql. My name field combines first name middle name(initial) and last name. I need to combine the name into one string. Example if the name is John K Smith - I need to be JohnKSmith. I try to use replace function which I thought could be best, but is not working- may be I'm missing something. Please, I need your help!Hiza |
|
|
nr
SQLTeam MVY
12543 Posts |
Posted - 2006-01-29 : 13:35:56
|
| update tbl set name = replace(name, ' ', '')==========================================Cursors are useful if you don't know sql.DTS can be used in a similar way.Beer is not cold and it isn't fizzy. |
 |
|
|
hizakemi
Starting Member
33 Posts |
Posted - 2006-01-29 : 13:40:38
|
Thank you very much. It works!Hiza update tbl set name = replace(name, ' ', '')==========================================Cursors are useful if you don't know sql.DTS can be used in a similar way.Beer is not cold and it isn't fizzy.[/quote] |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2006-01-30 : 00:15:46
|
| If it is only for display thenSelect replace(name, ' ', '') from tblMadhivananFailing to plan is Planning to fail |
 |
|
|
|
|
|