Dean,
Friday, August 02, 2002, 3:36:44 AM, you wrote:
DH> Okay, I thought I'd done this before but maybe not. I can't figure it out
DH> now.
DH> What I want to do is:
DH> SELECT column AS something FROM table WHERE something > 5
You can use aliases and HAVING clause for them:
http://www.mysql.com/doc/P/r/Problems_with_alias.html
DH> Basically I'm creating a new column called something and I want to use it to
DH> compare with in the WHERE condition. Is this possible?
DH> Ultimately I want to have MySQL calculate the age of people and also put a
DH> condition on it. I am using a very old fashioned web language which doesn't
DH> have a lot of power. I could do this in PHP if I could only use it. But I
DH> need MySQL to do it.
DH> Any thoughts?
DH> Also what is the name of this that I am doing, creating a new column. Is it
DH> a "dynamic" column or something?
--
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.net http://www.ensita.net/
__ ___ ___ ____ __
/ |/ /_ __/ __/ __ \/ / Egor Egorov
/ /|_/ / // /\ \/ /_/ / /__ [EMAIL PROTECTED]
/_/ /_/\_, /___/\___\_\___/ MySQL AB / Ensita.net
<___/ www.mysql.com
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php