When creating the backup table, use CREATE TABLE LIKE and INSERT SELECT
rather than CREATE TABLE SELECT. This way we retain the primary key etc.
Please register or sign in to comment
rather than CREATE TABLE SELECT. This way we retain the primary key etc.