If you think about HOW MySQL does the work, the "SELECT [fieldlist] FROM tblName WHERE [clause]" is all parsed in one shot.
Until it gets to the end of the SELECTing phase it doesn't know about any renaming that is going on in the middle of it.
Only after the SELECTing is done does it go on to consider GROUPing, HAVing and ORDERing tasks. By then it knows of the new column names - so they can then be used.
'ope-that-'elps.
G LS
spsinkNOJUNK@yahoo.co.uk
Remove the NOJUNK to use.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.