select * from (XXXXX)[字符]——写法解析

步骤:
1、先执行括号里的语句:查询 select id from three ,将查询出来的数据作为一个结果集 取名为 a
2、然后 再 select * from a 查询a ,将 结果集a 全部查询出来

select * from (select id from three)a;

 

 

猜你喜欢

转载自www.cnblogs.com/chrysanthemum/p/12026322.html