Skip to content
Advertisement

What part of my query is invalid with MySQL 5.7?

I have created the following query:

It works during development but after testing it on the production server (which is uses MySQL 5.7) I get the following error:

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘cte1 AS(SELECT Sender trader, TokenAddress, TokenId, SUM(Price) Price ‘ at line 2

I have a hard time figuring out the cause, any help would be greatly appreciated.

Advertisement

Answer

This way it will run on MySql 5.7:

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