更新加子查询加相同的表解决办法 mysql

UPDATE ofuser SET auid = '0' WHERE uid in (SELECT uid FROM (select tmp.* from ofuser tmp)a WHERE auid = '1' and did = '".$_SESSION['did']."')

posted @ 2015-01-09 15:23  fleam  阅读(158)  评论(0编辑  收藏  举报