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!

Update/Insert - add to existing column value

Status
Not open for further replies.

AHinMaine

ISP
Nov 27, 2002
264
US
I've been searching through docs and at mysql.com but can't seem to find what I want.

I found this syntax:

Code:
UPDATE table SET c=c+1 WHERE a=1

What I want to do is prepend a string to a varchar column.

I tried:

Code:
update table set field2="insert"+field2 where field1 = "example";

which didn't work...
--
Andy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top