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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Updating Character Fields

Status
Not open for further replies.

andyhutch

Programmer
Dec 11, 2001
9
GB

I have a large database which has been loaded with incorrect data.

I need to alter 1 of the fields which contains 'abc'
and change it to 'nabc'

I tried

update customer
set client_reference = 'N' + client_reference

This did not work as this is how I would treat a numeric field. How do you update a text field to stick a letter at the front?

 
Hi.
The operator for cancatenating strings is ||

update customer
set client_reference = 'N' || client_reference

should work.

Stefan


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top