mysql允许group by、having引用select别名,同名冲突时会使用原表列。
where后面的列必须用原表中的列,不能用select中的自定义列名。
posted on 2026-05-14 14:52 koushr 阅读(17) 评论(0) 收藏 举报