oracle、mysql、hive中的字段别名是否可以在where、group by、having、order by中直接使用

Mysql 版本5.7.20

where中不能直接使用字段的别名,group by、having、order by可以直接使用


Oracle 版本12c

 where、group by、having中不能直接使用字段的别名,order by可以直接使用


Hive 版本1.3.0

where、group by、having中不能直接使用字段的别名,order by可以直接使用

猜你喜欢

转载自blog.csdn.net/xiaozengtongxue/article/details/80773636