MySQL search criteria - column alias Dec12 '05
Feedback
# (2 of 2): Member
9 months, 2 weeks after the fact. (Thu 28 Sep 2006, 9:09 AM CST)
can we use alias column name is queries
RSS feed for comments on this post
Leave feedback
In MySQL, you can’t use a column alias, as the result of an expression, as criteria for your query. You must specify the entire expression twice.
You are at the feedback permalink page for: MySQL search criteria - column alias
# (1 of 2): Kristian
2 months, 1 week after the fact. (Tue 21 Feb 2006, 4:50 PM CST)
I totally agreed with you, until I remember the little used HAVING clause...
http://dev.mysql.com/doc/refman/5.0/en/problems-with-alias.html