猪猪girl(提问者) 回复 zsh331我确定sql语句没问题,上面的只是给出个样例,很多sql情况我都试过了,就是sql语句稍微复杂点就不行了,比如select count(STUDENTNO) as num
FROM dbo.V_BY_STUDENTGRADUATE where GRADUATEYEAR=2020 没问题,但是 select COLLEGENAME,count( STUDENTNO) as num
FROM dbo.V_BY_STUDENTGRADUATE where GRADUATEYEAR=2020 group by COLLEGENAME 就会空指针错误