我想从子查询中插入值
我的查询就是那样..
insert into T_Scanned(F_Asset_Code) values (select F_Barcode from T_Assets where F_Barcode
in( select Barcode as barcoade from [T_NEWASSET]))
但这不起作用......
答案 0 :(得分:4)
执行VALUES
:
INSERT INTO ... SELECT
insert into T_Scanned(F_Asset_Code)
select F_Barcode from T_Assets where F_Barcode
in( select Barcode as barcoade from [T_NEWASSET])