Syntax error: WITH is not valid input in this position

前端 未结 2 959
北海茫月
北海茫月 2021-01-14 15:01

So I have this similar request

    WITH customers_in_usa AS (
        SELECT 
           customerName, state
        FROM
           customers
        WHERE
         


        
2条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-14 15:37

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

    Version 8.0 is still not production-ready as I write this (but it's in Release Candidate status, so it'll be GA pretty soon).


    Update: MySQL 8.0 released its first GA version 8.0.11 on 2018-04-19.

提交回复
热议问题