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 |
vladimir_grigoro
Yak Posting Veteran
62 Posts |
Posted - 2003-10-31 : 03:58:46
|
Dear all,I have a question is it possible to update an exact symbol from a column?Example:Table A[ID] int[A] varchar(20) default['0000000000']I want to update for example the 8th symbol from column [A] where id=1 as I keep the existing values of the other part of the string in column [A] e.g. 0001000100 something like that.Thank you in advance!The Rebel |
|
nr
SQLTeam MVY
12543 Posts |
Posted - 2003-10-31 : 04:18:46
|
update A set A = stuff(A,8,1,'1') where ID = 1==========================================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. |
|
|
|
|
|