我在做东西的时候遇到了问题 关于SQL语句的优化问题,我用的数据库是SQL server2005 库里数据量太大 查询的太慢了 各位提提意见!select count (hd_gps_id) as tt, hd_gps_id from history_data,company_inf,car_inf where hd_gps_id=car_gps_id and hd_sea_h='1' and projectorservice='1' and company_id='0004' group by hd_gps_id执行查出结果用了40秒