[英]How do I insert data from table1 to table2?
表table1
有500,000行。 我只想將其中的200,000個插入table2
table1
table2
,該怎么做?
INSERT
INTO table2
SELECT *
FROM table1
ORDER BY
id -- or whatever
LIMIT 200000
INSERT INTO table2
SELECT **TOP 200000** * FROM table1 ORDER BY *<primary key>*
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.