ASP对Accesss数据库进行统计的时候提示操作符丢失
sql=select k_gmxd.k_gmxd_year,count(*) as summ from disableman,k_gmxd where disableman.残疾人证号=k_gmxd.k_gmxd_cjzh and (left(k_gmxd.k_gmxd_year,4)>=2000 and left(k_gmxd.k_gmxd_year,4)<=2012 ) and group by k_gmxd.k_gmxd_year
执行rs.open sql conn.1,3时候却提示操作符丢失,
调试过程时候发现执行时候丢失了group by k_gmxd.k_gmxd_year
------解决方案--------------------group by 前边不用and的,and 后是加where条件,group by不属于where里的