Re: appending INT to a column name in a trigger
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.
Subject
Views
Written By
Posted
2414
February 23, 2012 08:34AM
1246
February 23, 2012 08:07PM
1474
February 24, 2012 02:48AM
1268
February 24, 2012 02:54AM
1409
February 24, 2012 03:36AM
1330
February 23, 2012 09:34PM
1462
February 23, 2012 09:47PM
1225
February 23, 2012 09:53PM
1653
February 24, 2012 03:43AM
Re: appending INT to a column name in a trigger
2009
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.