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 |
|
mjlicklid
Starting Member
1 Post |
Posted - 2010-12-16 : 15:28:01
|
| Can anyone give me the correct expression?update jos_employee set ext = (select concat('1', ext) from jos_employee)I don't know SQL very well..Thanks, |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
|
kadolkre
Starting Member
2 Posts |
Posted - 2010-12-17 : 01:20:01
|
| update jos_employee set ext=(select concat(1,'ext')from jos_employeee); |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2010-12-20 : 08:22:57
|
| It is becuase the subquery is returning more than a row. You need to useupdate jos_employee set ext = concat('1', ext)MadhivananFailing to plan is Planning to fail |
 |
|
|
|
|
|