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 text to fields using Update statement

Status
Not open for further replies.

Tokhra

Programmer
Oct 1, 2003
134
ES
Hey all,

I need to perform an update on a table in my database appending text to fields, something like this:

UPDATE table SET Field1 = Field1 + " Appended Text" etc

So if Field1 was "Hello World" to begin with it will now be "Hello World Appended Text".

Any ideas? I haven't tried that because I don't want to wreck my database by guessing :s

Thanks all,
Matt.
 
UPDATE table SET Field1 = CONCAT(Field1," Appended Text"); etc

______________________________________________________________________
There's no present like the time, they say. - Henry's Cat.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top