2

It is said that "MySQL will support CTE's in version 8". But with MySQL server upgraded to 8.0.12, I am still getting this Syntax error for using 'with' clause. The SQL statement I was using is pretty simple

With t1 as (select name, price from product) select name from t1

Can anyone point out what is the problem with this line of code?

Aaron_Geng
  • 189
  • 1
  • 1
  • 14

1 Answers1

-1

MySQL doesn't support common table expressions and WITH syntax until version 8.0.1.

vanquan223
  • 139
  • 2
  • 5
  • 1
    What you say might be true, but Op has installed 8.0.12. I have same problem with 8.0.18. –  Dec 12 '19 at 03:27