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!

How do I update a substring of a column

Status
Not open for further replies.

Tison

Programmer
May 12, 1999
216
CH
I need to change the 5th character in a column.
I tried this statement but it does not work ;
update table_name
set substring(column_name,5,1) = "R"
 
Hey,

You can use

update table_name
set column_name = substring(column_name,1,4)+'R'+substring(column_name,6,max_length)

Pravin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top