複製 schema (有 primay key 、 index 等) 與 column,
CREATE TABLE new_table LIKE old_table;
但沒有資料,可以再 insert
INSERT new_table SELECT * FROM old_table;
複製 schema (有 primay key 、 index 等) 與 column,
CREATE TABLE new_table LIKE old_table;
但沒有資料,可以再 insert
INSERT new_table SELECT * FROM old_table;
留言