using subquery's column alias as a property in main query

前端 未结 0 1369
执念已碎
执念已碎 2020-12-09 07:02

i want to know if the main query can see the alias, here\'s an example:

SELECT AVG(values)
FROM(
  SELECT SUM(a1) AS values
  FROM tableX
)

D

相关标签:
回答
  • 消灭零回复
提交回复
热议问题