Mysql 高级sql操作: DELETE,UPDATE与LEFT JOIN
最近了解到,mysql可以直接联表操作:联表修改:update t1,t2 set t1.c1=* ,t2.c2=* where t1.c3=t2.c3 and t1.c2=*;例如:修改纸条状态update relation , information set relation.status = 2 where relation.infoid=information.info
转载
2012-02-21 18:02:51 ·
5841 阅读 ·
0 评论