📜  我可以在 where 子句中使用别名吗 - 无论代码示例

📅  最后修改于: 2022-03-11 15:00:38.546000             🧑  作者: Mango

代码示例1
column_alias can be used in an ORDER BY clause, but it cannot be used in a WHERE, GROUP BY, or HAVING clause. Standard SQL disallows references to column aliases in a WHERE clause. This restriction is imposed because when the WHERE clause is evaluated, the column value may not yet have been determined.