9 lines
347 B
SQL
9 lines
347 B
SQL
REPLACE INTO `comment_origin_` SELECT * FROM `comment`; -- 80.1G
|
|
REPLACE INTO `user_origin_` SELECT * FROM `user`; -- 5.20G
|
|
|
|
|
|
DELETE `comment`
|
|
FROM `comment` INNER JOIN `comment_origin_` ON `comment`.comment_id = `comment_origin_`.comment_id;
|
|
|
|
DELETE `user`
|
|
FROM `user` INNER JOIN `user_origin_` ON `user`.user_id = `user_origin_`.user_id; |