如何...或者我可以field as val
在同一个 select-clause 和 where-clause 中使用字段别名?
select
a.LONG_NAME_I_CANT_REMEMBER as val1,
a.NAME_I_DONT_WANT_2_REMEMBER as val2,
val1-val2 as diff
from
random_table a
where
(val1 > 12)
没有内联视图/内联查询,它与表别名无关。