【发布时间】:2015-06-16 12:34:49
【问题描述】:
我已经在 postgres sql 中用列别名写下了这个查询,它工作正常:
select email as e from users
它在e 列别名下显示我的结果,但是当我使用e 触发where 条件时,它会显示此错误:
select email as e from users where e = 'jaskaransingh@demo.com'
错误:“e”列不存在
为什么会这样?如何在 where 条件下使用别名?
【问题讨论】:
标签: sql postgresql alias