我对 mariadb 10.1 进行了 sql 查询
但是,我将mariadb 10.1升级到10.3,却出现ER_PARSE_ERROR和SQL语法错误。
此错误是:
code: 'ER_PARSE_ERROR',
errno: 1064,
sqlMessage:
'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 \')\' at line 1',
sqlState: '42000',
index: 0,
sql: 'select * from user where identifier in ()' }
这是怎么回事?
我一直在寻找,但我不知道出了什么问题。
最佳答案
它似乎不喜欢空列表。尝试更改查询。
select * from user where identifier in (null)
Null 不会匹配任何值(甚至另一个 null),因此这实际上是您想要的。
关于mysql - Mariadb:ER_PARSE_ERROR,如何修复?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51371576/