假設目前 user_id = 1uc數據表prod_id / user_id102 / 1103 / 1cs數據表prod_id / user_id102 / 1我想找出 103 ,也就是uc數據表有,但cs數據表沒有的那些數據SELECT
uc.prod_id FROM `user_cart` as uc
JOIN `user_cart_stock` as cs ON cs.prod_id = uc.prod_id WHERE uc.user_id = 1
AND cs.prod_id IS NULL我發現這樣寫啥都不給印?关注 | 4收藏 评论邀请回答
添加回答
举报
0/150
提交
取消