MySQLservererrorreport:Array([0]=>Array([message]=>MySQLQueryError)[1]=>Array([sql]=>SELECTg.goods_id,g.goods_name,g.goods_name_style,g.market_price,g.is_new,g.is_best,g....
MySQL server error report:Array ( [0] => Array ( [message] => MySQL Query Error ) [1] => Array ( [sql] => SELECT g.goods_id, g.goods_name, g.goods_name_style, g.market_price, g.is_new, g.is_best, g.is_hot, g.shop_price AS org_price, IFNULL(mp.user_price, g.shop_price * '1') AS shop_price, g.promote_price, g.goods_type, g.promote_start_date, g.promote_end_date, g.goods_brief, g.goods_thumb , g.goods_imgFROM `geno`.`ecs_goods` AS g LEFT JOIN `geno`.`ecs_member_price` AS mp ON mp.goods_id = g.goods_id AND mp.user_rank = '0' WHERE g.is_on_sale = 1 AND g.is_alone_sale = 1 AND g.is_delete = 0 AND (g.cat_id IN ('1') OR g.goods_id IN ('') ) ORDER BY goods_id DESC LIMIT 10 ) [2] => Array ( [error] => 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 '.`ecs_goods` AS g LEFT JOIN `geno`.`ecs_member_price` AS mp ON mp.goods_id = g.g' at line 1 ) [3] => Array ( [errno] => 1064 ) )
展开
在尝试从ECSHOP系统中检索商品信息时遇到了MySQL查询错误。错误报告显示SQL语法在某个点上存在问题,导致无法正确执行。具体错误为'You have an error in your SQL syntax...',建议检查SQL语句的拼写和结构,以对应MySQL服务器版本的语法进行修正。

2425

被折叠的 条评论
为什么被折叠?



