今天對一個表執行更新,update 表名1 set isleaf=0 where itemid in (select superitemid from 表名1);有471條數據受影響,然后又執行update 表名1 set isleaf=1 where itemid not in (select superitemid from 表名1);結果0條數據受影響。表一共3000條數據。為什么這行玩這兩條語句不能覆蓋整張表呢?求數據庫大神解答。
- 1 回答
- 0 關注
- 1794 瀏覽
添加回答
舉報
0/150
提交
取消