Filtering on an alias in mysql

后端 未结 3 1571
清酒与你
清酒与你 2021-01-06 09:41

Why doesn\'t the following query work? Mysql complains about z - can\'t I use an alias in the WHERE clause?

SELECT x + y AS z, t.*  FROM t
WHERE 
x = 1 and
z         


        
3条回答
提交回复
热议问题