首页 > 数据库技术 > 详细

mysql版本引发的问题

时间:2019-11-05 16:48:31      阅读:103      评论:0      收藏:0      [点我收藏+]
Warning: SQL:
SELECT id,title,thumb,subtitle,type,price,credit,money,goodstype,hasoption,mincredit,minmoney FROM `ims_ewei_shop_creditshop_goods` where 1 and uniacid = :uniacid and status=1 and deleted=0 and cate=17 and id in() ORDER BY displayorder desc,id DESC LIMIT 0,10

SQL 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 ‘) ORDER BY displayorder desc,id DESC LIMIT 0,10‘ at line 2

因为mysql版本过低造成的,解决办法有二。

方法一:

升级mysql

方法二:

在php.ini中找到display_errors,把前面的 ;去掉

mysql版本引发的问题

原文:https://www.cnblogs.com/xiong-hua/p/11799224.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!