例子:把table2中李四的city和其他数据一起插入table1
insert into table1(id, name, age, sex, city) select '1001', '张三', '18', '男', t.city from table2 t where t.name='李四';
table1和table2的表结构不需要相同。
INSERT INTO 表2(字段名1,字段名2 )
SELECT 字段名1, "张三"
FROM 表1;
Access中通过
insert into table2 values ('张三',select 字段 from table)
insert into table2(field)
(select '张三' union all select field from table1)