vfp6下:GROUP BY子句:能用输出列中的字段名或字段别名,但不能用表达式。为什么?
例:1、select subs(xh,1,4) as bmd,count(xh) as rs from ls group by bmd &&&能通过
2、select subs(xh,1,4) as bmd,count(xh) as rs from ls group by 1 &&也能通过
3、select subs(xh,1,4) as bmd,count(xh) as rs from ls group by subs(xh,1,4) &&不能通过为什么?