错误信息:
You have an error in your SQL syntax near 'group by s.goodName,s.public,s.author' at line 1

解决方案 »

  1.   

    group by 后面跟a.university,s.goodName,s.originPrice,s.public,s.author就对了;还有s.OOS=有货改为s.OOS='有货';select a.university,s.goodName,s.originPrice,s.public,s.author,COUNT(s.quality) as quality from sellgoodsinfo as s,appendinfo as a where s.bookSaler=1 and s.OOS='有货' group by a.university,s.goodName,s.originPrice,s.public,s.author