mysql数据库 update时, 使用left join和where语句
(2017-06-23 14:03:38)
标签:
mysqlupdateleftjoinit |
在使用update语句的时候我们有时候需要利用left
join 关联表,以下是正确操作:
UPDATE store_invins as
a
JOIN store_invin AS
b
set
a.inprice='2222'
WHERE a.inid=b.inid and
a.invid='值' and a.batchno='值' and b.areaid='值'
and b.storageid='值'

加载中…