MYSQL Optimizing recurring expressions?
Posted
by Johannes
on Stack Overflow
See other posts from Stack Overflow
or by Johannes
Published on 2010-05-27T21:38:40Z
Indexed on
2010/05/27
21:41 UTC
Read the original article
Hit count: 194
mysql
Does the Optimizer evaluate the avergae only one time, or two times?
SELECT AVG(col1), 1/AVG(col1) FROM table
Thanks
© Stack Overflow or respective owner