EXISTS 子查询导致错误 1064

EXISTS subquery causes error 1064(EXISTS 子查询导致错误 1064)
本文介绍了EXISTS 子查询导致错误 1064的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

自从我上次 PLESK 更新到 12.0.18 #70 以来,我在使用带有 EXISTS 子查询的 select 语句时遇到了 phpMyAdmin 的问题.

since my last PLESK Update to 12.0.18 #70, I have a problem with phpMyAdmin using select statements with EXISTS subqueries.

如果我仅以 MariaDB 网站上的示例为例(我使用数据库上的真实表和字段对其进行了测试):

If I take simply the example from the MariaDB website (I tested it with real tables and fields on my DB):

SELECT col1 FROM t1 WHERE EXISTS (SELECT * FROM t2)

解释器迅速在EXISTS"和(SELECT"下划线显示错误 1064

Quickly the interpreter underlines "EXISTS" and the "(SELECT" to show the error 1064

#1064 - You have an error in your SQL syntax;

1.  unknown keyword (near "EXISTS" at position 30)
2.  unexpected character (near "(" at position 37)

重要提示:Select 语句在我的 MariaDB (10.0.20) 服务器上使用 PHP 代码运行良好.只有 phpMyAdmin 告诉我有语法错误.

Important to know: The Select statements works fine on my MariaDB (10.0.20) server using PHP code. Only phpMyAdmin tells me that there is a syntax error.

EXISTS 被贬低了吗?

Is EXISTS depricated?

谢谢!

[phpMyAdmin 4.5.0.2 和 MariaDB]

[phpMyAdmin 4.5.0.2 and MariaDB]

推荐答案

这是 4.5.0(.x) 版本中一系列不幸的错误的一部分.目前最新版本为 4.5.2,该版本已修复此错误;我建议您升级.

That was part of an unfortunate series of bugs with the 4.5.0(.x) releases. The latest version is currently 4.5.2 and this bug has been fixed in that version; I suggest that you upgrade.

这篇关于EXISTS 子查询导致错误 1064的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

Hibernate reactive No Vert.x context active in aws rds(AWS RDS中的休眠反应性非Vert.x上下文处于活动状态)
Bulk insert with mysql2 and NodeJs throws 500(使用mysql2和NodeJS的大容量插入抛出500)
Flask + PyMySQL giving error no attribute #39;settimeout#39;(FlASK+PyMySQL给出错误,没有属性#39;setTimeout#39;)
auto_increment column for a group of rows?(一组行的AUTO_INCREMENT列?)
Sort by ID DESC(按ID代码排序)
SQL/MySQL: split a quantity value into multiple rows by date(SQL/MySQL:按日期将数量值拆分为多行)