【发布时间】:2023-04-06 06:56:01
【问题描述】:
代码:
SELECT * FROM (SELECT *, ROW_NUMBER() OVER (ORDER BY Kills DESC) pos FROM kills) WHERE `UUID` = ?
错误:
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: 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 'WHERE `UUID` = '37bb2c2c-e170-469c-a08e-6a22e7d083cd'' at line 1
我不知道如何修复错误,因为我不知道错误。
【问题讨论】:
-
您需要命名您的子选择吗?
(SELECT ...) AS x
标签: java mysql eclipse eclipse-plugin