如何将一张表里某个字段的值全部取出来作为第2张表里的字段?
要是你用的是Oracle的话:
insert into b as select * from a where 1=2
写SQL语句
SQL我不太熟,楼上的你要是知道就写出来啊!
insert into b select fieldX from a
如果还想加限制得话可以写成
insert into b select fieldX from a where fieldX=
insert into tabel1 select field from tabel2 where fieldindex=?