MySQL Forums
Forum List  »  Newbie

Expressions in queries
Posted by: mjac
Date: April 21, 2005 04:08PM

I asked this last night on quakenet and didn't get an answer (as par usual).

How can I do something similar to: SELECT (complicated expression) as `exp` WHERE `field`<`exp` and `anotherfield`>`exp`.

I want to use exp more than once, but I don't want it to be calculated many times. writing the full expression for each use of exp is labourous and slow. Any ideas?

Thanks

Options: ReplyQuote


Subject
Written By
Posted
Expressions in queries
April 21, 2005 04:08PM
April 22, 2005 08:55AM
April 22, 2005 11:08AM
April 23, 2005 01:15PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.