表table1
已有500,000行。我想从table2
只向table1
插入200,000个,我该怎么做?
答案 0 :(得分:3)
INSERT
INTO table2
SELECT *
FROM table1
ORDER BY
id -- or whatever
LIMIT 200000
答案 1 :(得分:0)
INSERT INTO table2
SELECT **TOP 200000** * FROM table1 ORDER BY *<primary key>*