s***@gmail.com
2016-09-01 09:44:04 UTC
Years and years after the fact, but maybe someone finds it useful.
Informix's INSERT INTO seems to only allow one SELECT statement.
The solution is to select from the union.
INSERT INTO mytbl
SELECT * FROM
(
SELECT "B", "B" FROM mytblB
UNION
SELECT "C", "C" FROM mytblB
);
Informix's INSERT INTO seems to only allow one SELECT statement.
The solution is to select from the union.
INSERT INTO mytbl
SELECT * FROM
(
SELECT "B", "B" FROM mytblB
UNION
SELECT "C", "C" FROM mytblB
);