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

Appending

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Is there a way to append a field in SQL? I'm looking for something sort of like Perl's open(FILE,">>file.txt"); where I can just add to the end of a field rather than doing a SELECT and then overwriting the field with an UPDATE.
 
try this

UPDATE MyTbl SET Field = CONCAT(IFNULL(Field, \'\'), 'newdata') WHERE IdField=id
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top