请专家帮忙看看这个错误提示
我的数据库是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,produc
select count(*) as total from temp where a.shopid=shopid and productname
[TEP STOP]
------解决方案--------------------a.shopid这个a那来的?
------解决方案--------------------select count(*) as total from temp,a where a.shopid=temp.shopid and temp.productname
[TEP STOP]
temp.productname或者a.productname
不知道你用哪个,你试试