I have a table:
create table A (
KEY VARCHAR(1024) not null
);
where KEY is primary key. Now I want to create another autoincrement column ID BIGINT, drop exiting primary key constraint and make created column ID as primary key.
How to do this without loosing my data?
Sure I can use temporary table, but try to find right way.
1 Answer