SELECT (`aaa`/`bbb`) AS ccc
FROM test
WHERE ccc > 1
搜寻是没问题,但是加上WHERE条件会说[Err] 1054 - Unknown column 'ccc' in 'where clause',请问要怎么修正?
------解决思路----------------------
SELECT (`aaa`/`bbb`) AS ccc或
FROM test
WHERE `aaa`/`bbb` > 1
SELECT (`aaa`/`bbb`) AS ccc
FROM test
HAVING ccc > 1
注意:`aaa`/`bbb` 不会被重复计算