看板
[ Database ]
討論串[SQL ] MySQL之巢狀Select,Delete
共 6 篇文章
內容預覽:
MySQL版本 4.0.24. SELECT * FROM products WHERE category=(. SELECT id FROM categories WHERE parent=42. ). 從products中選出其分類的上層分類是42的物品. 怪了... 有巢狀的我的mysql都說
(還有217個字)
內容預覽:
delete from products where category = EXISTS ( select id from categories. where parent=42);. delete from products where category = ANY ( select id fro
(還有11個字)