题解 | #检索并列出已订购产品的清单#
检索并列出已订购产品的清单
https://www.nowcoder.com/practice/674d99a46a96494d8267ae4d162ed459
select order_num, prod_id, quantity from OrderItems where (prod_id = 'BR01' || prod_id = 'BR02' ||prod_id = 'BR03') && quantity >= 100 order by order_num asc,prod_id asc;
注意:不可以直接 prod_id = 'BR01','BR02','BR03',需要关系词连接。