2011-01-28 102 views

回答

3
INSERT 
INTO table2 
SELECT * 
FROM table1 
ORDER BY 
     id -- or whatever 
LIMIT 200000 
0
INSERT INTO table2 
SELECT **TOP 200000** * FROM table1 ORDER BY *<primary key>* 
+0

我不相信MySQL支持的`top`語法,它使用`limit`了點。 – paxdiablo 2011-01-28 16:18:57

相關問題