2012年2月17日

根据查询到的数据更新另一张表的数据

摘要: --写一个通用的update aset a.num = a.num + b.numfrom table1 a inner join table2 b on a.id = b.id --(关联条件)where ... --如果有条件的话--有查询的update aset a.num = a.num + b.numfrom table1 a inner join (查询语句) b on a.id = b.id --(关联条件)where ... --如果有条件的话 阅读全文

posted @ 2012-02-17 10:31 huiy 阅读(691) 评论(0) 推荐(0) 编辑

导航