Skip to content
Advertisement

What is wrong with this syntax that works in mysql 5 but doesn’t work in mysql 8

1064 error in SQL Syntax near ‘!=guildRank LIMIT 1 END’ at line 3

Advertisement

Answer

MySQL 8.0 added the rank() window function, so it is now reserved.

You need to escape it:

for the condition.

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement