题解 | #将两个select语句结合起来(一)#

将两个 SELECT 语句结合起来(一)

http://www.nowcoder.com/practice/a33d5c0ebf434e00b22e2977a5aa3a90

使用union或者union all即可
select prod_id,quantity
from OrderItems
where quantity = 100
union
select prod_id,quantity
from OrderItems
where prod_id like 'BNBG%'
order by prod_id
全部评论

相关推荐

点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务