I have created 2 tables in db2 11.5 LUW :
CREATE TABLE test.TABLE1(ONE INT,
TWO CHAR(10),
THREE DATE);
CREATE TABLE test.TABLE2(ONE INT,
TWO CHAR(10),
THREE DATE);
Both tables are selectable:
db2 => select * from test.table1;
ONE TWO THREE
----------- ---------- ----------
0 record(s) selected.
db2 => select * from test.table2;
ONE TWO THREE
----------- ---------- ----------
0 record(s) selected.
Trying to run load (even on empty tables):
db2 => DECLARE mycurs CURSOR FOR SELECT ONE, TWO, THREE FROM test.table1;
DB20000I The SQL command completed successfully.
db2 => LOAD FROM mycurs OF cursor INSERT INTO test.table2;
SQL3304N The table does not exist.
Any ideas why it happens?
question from:https://stackoverflow.com/questions/65898879/db2-load-fails-with-sql3304n-the-table-does-not-exist