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 |
|
vwilsonjr
Starting Member
45 Posts |
Posted - 2003-05-20 : 20:16:44
|
| I want to update the lastname to zz-lastname when employment_end is not null. I have tried Update userset lastname = 'zz-'lastname. But as you know it doesnt work. What should the context be.ThanksThank God for Forums. |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
Posted - 2003-05-20 : 20:35:21
|
| This should work:UPDATE user SET lastname = 'zz-' + lastnameWHERE employment_end IS NOT NULLTaraEdited by - tduggan on 05/20/2003 20:37:21 |
 |
|
|
vwilsonjr
Starting Member
45 Posts |
Posted - 2003-05-21 : 13:03:07
|
| Thanks I was hitting the wrong db.Thank God for Forums. |
 |
|
|
|
|
|