更新zxbz信息(多对多)

来源:互联网 发布:centos卸载lamp环境 编辑:程序博客网 时间:2024/05/29 08:32
--更新zxbz信息
--update --ca a -- 使用别名
--set a.l=(select b.长 from test b where b.id6=a.gid),
--a.w=(select b.宽 from test b where b.id6=a.gid),
--a.h=(select b.高 from test b where b.id6=a.gid),
--a.b=(select b.体积 from test b where b.id6=a.gid)
--where exists (select 1
--from test b
--where b.id6=a.gid
--)
-- and a.ca_sort='3'
0 0
原创粉丝点击