SQL server 带条件插入
电脑版发表于:2021/11/12 11:52
insert into 表(条码号,输入卷号,累计卷号,出货卷号) select 条码号,输入卷号,累计卷号,出货卷号 from 表 where 条码号 in ("700011", "700012", "100010")
insert into table(出库卷号) select 出库卷号 from tableA where tableA.条码号='xxxx'
insert into Forms_UserInfo(forms_id, userinfo_id ) select top 1 f.Id,u.Id from Forms f, UserInfo u