WHERE vs HAVING

Posted by baloo on Stack Overflow See other posts from Stack Overflow or by baloo
Published on 2010-05-25T13:57:41Z Indexed on 2010/05/25 14:01 UTC
Read the original article Hit count: 215

Filed under:
|

Why is it that you need to place columns you create yourself (for example "select 1 as number") after HAVING and not WHERE in MySQL? And are there any downsides instead of doing "WHERE 1" (writing the whole definition instead of a column name)

© Stack Overflow or respective owner

Related posts about sql

Related posts about mysql