📜  mysql 更新集 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:27.406000             🧑  作者: Mango

代码示例3
CREATE TABLE copy LIKE original;

ALTER TABLE copy DISABLE KEYS;
SET unique_checks=0; SET foreign_key_checks=0; 

INSERT INTO copy SELECT * FROM original;

ALTER TABLE copy ENABLE KEYS;
SET unique_checks=1; SET foreign_key_checks=1;