首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > Mysql >

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

2012-02-15 
请专家帮忙看看这个错误提示我的数据库是mysql4.1.7版本运行SQL出现下面的错误1064-YouhaveanerrorinyourS

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

不知道你用哪个,你试试

热点排行