Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Update exact symbol from a column

Author  Topic 

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?
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


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.
Go to Top of Page

- Advertisement -