读书人

请专家帮忙看看这个异常提示

发布时间: 2012-02-15 12:09:43 作者: rapoo

请专家帮忙看看这个错误提示
我的数据库是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

不知道你用哪个,你试试

读书人网 >Mysql

热点推荐