什么是错误的原因mariadb服务器版本的正确语法使用近

44u64gxh  于 2021-06-17  发布在  Mysql
关注(0)|答案(1)|浏览(230)

我使用最新版本的wordpress和保存后,张贴,管理会话结束和自动从 Jmeter 板注销,不能再次登录。。。
显示以下错误的错误日志:

You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ')
ORDER BY menu_order ASC' at line 3 SELECT ID FROM wp_posts
                    WHERE post_type = 'attachment'
                    AND ID in ()
                    ORDER BY menu_order ASC quire('wp-blog-header.php'), require_once('wp-includes/template-loader.php'), include('/themes/goodnews/single.php'), mom_single_post_content, mom_single_post_format

请告知
谢谢你

slsn1g29

slsn1g291#

问题是 ID IN () 必须指定要选择的id值,并将它们写入方括号(用逗号分隔)。否则,如果不必对id值设置过滤器,请从where中删除id in()。

相关问题