Re: appending INT to a column name in a trigger
Error Code: 1406. Data too long for column 'logName' at row 2
running out of ideas.
DECLARE rowNum INTEGER;
DECLARE srowNum CHAR;
DECLARE logName CHAR;
SELECT id INTO rowNum FROM b04_reel_data limit 1;
SET srowNum = CAST(rowNum AS CHAR);
SET logName = CONCAT('log_streamer_', srowNum);
IF rowNum<25 THEN
INSERT INTO logName (streamer_tension) VALUES (NEW.streamer_tension) ;
END IF;
Subject
Views
Written By
Posted
2544
February 23, 2012 08:34AM
1320
February 23, 2012 08:07PM
1554
February 24, 2012 02:48AM
1355
February 24, 2012 02:54AM
1490
February 24, 2012 03:36AM
1389
February 23, 2012 09:34PM
Re: appending INT to a column name in a trigger
1569
February 23, 2012 09:47PM
1281
February 23, 2012 09:53PM
1727
February 24, 2012 03:43AM
2072
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.