Hello to all.
This is my first post. I have received many answers to questions in the past, but this one I cannot find.
We need to move data from production tables to archive tables. I wrote this:
[CODE]
EXEC SQL
INSERT INTO table1_archive
SELECT *
FROM table1_producti on
WHERE table1_nbr = :some number
END-EXEC. [CODE]
Which worked, while the tables were identical. Now a DATE column defined as “NOT NULL WITH DEFAULT has been added to the archive tables in the first column.
Now I am getting SQLCODE=-408 ( THE VALUE IS NOT COMPATIBLE WITH THE DATA TYPE OF ITS TARGET.)
Is there a way to skip this first column, or say to start at column 2?
Any ideas? we have lots of tables at this time to be archived, each having 1 to many rows.
I truly appreciate the knowledge and expertise that all of you bring to this forum. Thank you!
This is my first post. I have received many answers to questions in the past, but this one I cannot find.
We need to move data from production tables to archive tables. I wrote this:
[CODE]
EXEC SQL
INSERT INTO table1_archive
SELECT *
FROM table1_producti on
WHERE table1_nbr = :some number
END-EXEC. [CODE]
Which worked, while the tables were identical. Now a DATE column defined as “NOT NULL WITH DEFAULT has been added to the archive tables in the first column.
Now I am getting SQLCODE=-408 ( THE VALUE IS NOT COMPATIBLE WITH THE DATA TYPE OF ITS TARGET.)
Is there a way to skip this first column, or say to start at column 2?
Any ideas? we have lots of tables at this time to be archived, each having 1 to many rows.
I truly appreciate the knowledge and expertise that all of you bring to this forum. Thank you!
Comment