Understanding Oracle aliasing - why isn't an alias not recognized in a query unless wrapped in a second query?

后端 未结 4 1230
我寻月下人不归
我寻月下人不归 2020-12-07 01:38

I have a query


SELECT COUNT(*) AS \"CNT\",
       imei
FROM   devices  

which executes just fine. I want to further restrict the query wi

4条回答
  •  孤城傲影
    2020-12-07 02:17

    I would imagine because the alias is not assigned to the result column until after the WHERE clause has been processed and the data generated. Is Oracle different from other DBMSs in this behaviour?

提交回复
热议问题