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 |
mateenmohd
Constraint Violating Yak Guru
297 Posts |
Posted - 2007-05-26 : 09:57:27
|
what function will use to add P in the user_id data ?user_id type varcharie.user_id--------012345014153016464...add P before the user_id i.e.user_id--------p012345p014153p016464...regardsMateen |
|
spirit1
Cybernetic Yak Master
11752 Posts |
Posted - 2007-05-26 : 10:34:11
|
update YourTabelset user_id = 'p' + user_idif this causes a truncation of some data you'll have to increase the column length first._______________________________________________Causing trouble since 1980blog: http://weblogs.sqlteam.com/mladenp |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2007-05-26 : 10:40:25
|
Alternatively, you can add that when selecting dataSelect 'p'+user_id as user_id from tableMadhivananFailing to plan is Planning to fail |
|
|
mateenmohd
Constraint Violating Yak Guru
297 Posts |
Posted - 2007-05-26 : 10:43:07
|
thanks you very much. |
|
|
|
|
|