mysql 从一个表中查询,插入到另一个表中
程序员文章站
2022-04-02 23:48:43
insert into table1(field1) select field1 from table2; insert into table1(field1) select field1 from table2 WHERE id > 3 and id <= 10; ......
insert into table1(field1) select field1 from table2;
insert into table1(field1) select field1 from table2 where id > 3 and id <= 10;