MySQL Forums
Forum List  »  Triggers

Re: appending INT to a column name in a trigger
Posted by: Peter Brawley
Date: February 24, 2012 09:54AM

Do string concatenation in MySQL with Concat(), so to append an integer value to a char column in a MySQL table:

update tbl set col=concat(col,intvalue);

In a trigger on table tbl ...

SET new.col=concat(col,intvalue);



Edited 1 time(s). Last edit at 02/24/2012 04:05PM by Peter Brawley.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: appending INT to a column name in a trigger
2071
February 24, 2012 09:54AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.