select substring(sendtime,1,8) ,count(*) from (select sendtime c from hasms_mo) group by substring(sendtime,1,8) ;为什么不能做?
select substring(sendtime,1,8) ,count(*) from (select sendtime c from hasms_mo) group by substring(sendtime,1,8) ;这个查询不能做
但是
select sendtime ,count(*) from (select sendtime c from hasms_mo) group by sendtime ;
就可以
如果我想达到上面的功能,该怎么写?