最贊回答 / orangesweet
delete t1 from ....... where t1.goods_id > t2.goods.id;有where條件限制 只刪除連接后結果表中t1.goods_id > t2.goods.id 的t1的數據<...code...>
2014-07-18
最新回答 / 哎呦喂丶哎呦
having是對分組后的結果操作。所以sex為0的 count(id)值為8 ,而sex為nulll的count(id)值為0,<...圖片...>然后 開始,進行 我所示的判斷, count(id)&均滿足=2,那就是只有分組后sex為0的8滿足,所以結...
2014-07-18