T
toufik
Hi,
I'm trying to create an archiving script, using the folowing query for all
database tables
insert into table2 select * from table1 (table1, table2 are 2 tables having
exactly the same definition)
The rpoblem is that the rows are,'t deleted from the table TABLE2, so the
next time the user runs the script he'll find some rows already existing in
TABLE2, so he'll have an error.
How can I handle this without to know exacly what are the IDs or the
structure, juste to say "if the row (the unique key) exists skip it, but
continue with the other rows"
Thanks.
I'm trying to create an archiving script, using the folowing query for all
database tables
insert into table2 select * from table1 (table1, table2 are 2 tables having
exactly the same definition)
The rpoblem is that the rows are,'t deleted from the table TABLE2, so the
next time the user runs the script he'll find some rows already existing in
TABLE2, so he'll have an error.
How can I handle this without to know exacly what are the IDs or the
structure, juste to say "if the row (the unique key) exists skip it, but
continue with the other rows"
Thanks.