|
---导入前七位码
insert into t_ware_msfx (compid,
wareid,
rowno,
max_descode,
mid_descode,
min_descode,
lastmodify,
lasttime)
SELECT compid,
wareid,
rowno,
max_descode,
mid_descode,
min_descode,
lastmodify,
lasttime
FROM d_ware_msfx241129 a
where not exists (select 1 from t_ware_msfx b where a.compid=b.compid and a.wareid=b.wareid )
----更新是否扫码, 更新为1
update w set scan_flag='1'
FROM t_ware w
WHERE w.compid=2 and w.wareid='商品编码'
|
|