Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Update 3rd Char In a Text Field 1

Status
Not open for further replies.
Jun 29, 2001
195
US
Been a while trying to do this. Must be brain dead today.

Need to update the 3rd character in a 5 character text string.

Something like this:
update products
set (select left(productname, 2) from products))) = 'X'

TIA


Ashley L Rickards
SQL DBA
 
update product
set productname = STUFF(productname, 3, 1, 'X')
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top