I have this code:
DECLARE v_insert VARCHAR(255);
SET v_insert = 'INSERT INTO mytable (field1, field2, field3, field4, field5, field6, field7, field8 field9)';
SET v_insert = v_insert || ' Select * from sometable';
EXECUTE IMMEDIATE v_insert;
Problem is the v_insert variable only holds 80 characters. The first assignment statement has more than 80 so it cuts it off. I tried 1000 in the varchar declaration.
Is there another variable to use or is there a reason I'm limited to 80 characters?
Blaise