两个表间数据操作
table1
table2
①假如把table1中的某个字段或多个字段复制到table2中
Insert into Table2(field1,field2,...) select value1,value2,... from Table1
②假如把table1中所有字段都复制到table2中
SELECT vale1, value2 into Table2 from Table1
table1
table2
①假如把table1中的某个字段或多个字段复制到table2中
Insert into Table2(field1,field2,...) select value1,value2,... from Table1
②假如把table1中所有字段都复制到table2中
SELECT vale1, value2 into Table2 from Table1
评论功能维护中,当前仅展示历史评论。
和插入表数据区别不大,不同的是插入的数据是select出来的不是通过对象传进去的
而且无所谓几个表,只要查出来的字段和要插入的字段个数和类型对应上就行
楼主只是说了怎么使用,可是没有分析在什么情况下可以使用。比如两个表之间有没有什么要求等因素。