mysql关联更新记录

MYSQL

update a,b set col=0 where a.id=b.id

SQLServer

update table set col=val from table, table1 where table.id=table1.id;

  

posted @ 2011-09-15 17:10  Mini.J  阅读(169)  评论(0编辑  收藏  举报