I have a table with out a primary key. I want to copy this table's data/structure into a new table with a primary key (with auto increment attribute). What code can I add on to this to acheive this? Will it assign id's to the current data?
select *
into NEW_TABLE
from OLD_TABLE
select *
into NEW_TABLE
from OLD_TABLE