Re: appending INT to a column name in a trigger
hmm, I'll try but I'm not sure I can state anymore clearly than "how to add an INT into a VARCHAR, in an mySQL trigger".
I asked on the MS sqlServer forums and they suggest this:
declare @t varchar(20)
select @t = 'log_'
declare @i int
select @i = 1
declare @ti varchar(20)
select @ti = @t + convert(varchar(32),@i)
select @ti
Result;
log_1
I am assuming I can do the same in mySQL perhaps just with slightly different syntax?
Subject
Views
Written By
Posted
2529
February 23, 2012 08:34AM
1314
February 23, 2012 08:07PM
Re: appending INT to a column name in a trigger
1542
February 24, 2012 02:48AM
1344
February 24, 2012 02:54AM
1481
February 24, 2012 03:36AM
1382
February 23, 2012 09:34PM
1555
February 23, 2012 09:47PM
1272
February 23, 2012 09:53PM
1716
February 24, 2012 03:43AM
2061
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.