1
hennywei 2014-06-20 11:00:17 +08:00
group by 呢
|
2
qq2511296 2014-06-20 14:12:46 +08:00
select count(t.*) from (
SELECT *,一个表达式 AS flag FROM (这里2个表INNER JOIN) AS c INNER JOIN 表D AS d ON c.part = d.part HAVING flag='1' ) t 楼主这样测试结果是4? HAVING好像是最后才执行 一般都是放在group by 后面的 |
4
liprais 2014-06-20 15:45:50 +08:00
没看懂什么意思,lz不妨贴个例子?
|