我有两个表 table1 ,字段 f1 , f2
和
table2 ,字段为 id,f1,f2 ,其中id为增量字段
我需要从 table1 获取值,并需要插入 table2
任何人都可以在sql server
中提供查询答案 0 :(得分:1)
INSERT INTO table2(f1,f2) SELECT f1,f2 FROM table1
这将完全符合您的要求。
答案 1 :(得分:0)
INSERT INTO table2
(f1, f2)
SELECT f1, f2
FROM table1
答案 2 :(得分:0)