Invalid input: WITH is not valid syntax in this context
P粉124070451
P粉124070451 2023-10-23 11:59:56

So I have similar request

WITH customers_in_usa AS (
        SELECT 
           customerName, state
        FROM
           customers
        WHERE
           country = 'USA'
    ) SELECT 
        customerName
    FROM
        customers_in_usa
    WHERE
        state = 'CA'
    ORDER BY customerName;

But while writing it I found an error: "WITH Invalid input at this position" error_picture. Can you help me understand what's wrong with this code?

P粉124070451
P粉124070451

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!