Auto-increment Copied IDs

时间:2016-08-23 15:34:43

标签: sql sql-server

I am updating a large group of records to have a new need from the previous year (in this case, a 2017 sponsorship). In order to do this, I am simply copying the last year's 2016 sponsorship records into a temporary_table and updating the fields to reflect the new year's values.

My question is this: When I copied the records into the temporary_table, the auto-increment ID's also copied over. I can't set this column to NULL, so when I insert these records into the live table, will the table recognize that there are duplicate ID's and increment the new ones? Is there another way to handle it?

Thank you!

0 个答案:

没有答案