标签: mysql
是否可以在 WHERE 条件中使用别名?
例如:
SELECT n.name, count(c.name) as freq FROM names as n, names as c WHERE freq < 1 AND gender = 'f' order by rand() )
或者我必须以另一种方式这样做吗?