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

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Update exact symbol from a column
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

vladimir_grigoro
Yak Posting Veteran

Bulgaria
62 Posts

Posted - 10/31/2003 :  03:58:46  Show Profile  Reply with Quote
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

United Kingdom
12543 Posts

Posted - 10/31/2003 :  04:18:46  Show Profile  Visit nr's Homepage  Reply with Quote
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.

Edited by - nr on 10/31/2003 04:19:11
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000