摘要: update一般是做单表操作的。但是有时候某些业务下update某个表的时候,用的数据可能是其他表的数据,这个时候可以使用jion方式语句如下update a set count = a.count + b.count from a left join b on a.id=b.id 阅读全文
posted @ 2009-12-15 01:04 音乐啤酒 阅读(3169) 评论(0) 推荐(0)