2020-03-02
阅读量:
857
什么是子查询
子查询:写在()中,把内层查询结果当做外层查询参照的数据表来用
例: 用in操作符与子查询语句来查询所有f_id对应的f_price在10元到20元之间的水果记录
select * from fruits where f_id in
(select f_id from fruits where f_price between 10 and 20);






评论(0)


暂无数据
推荐帖子
0条评论
0条评论
0条评论