我的数据库是mysql 4.1.7版本
运行SQL出现下面的错误 
1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') then shopid else ' ' end)AS D,shopname,shopadmin,mode,producselect count(*) as total from temp where a.shopid=shopid and productname
[TEP STOP]