Skip to content

CREATE TABLE ... WITH ... SELECT not supported #255

Description

@nicktobey

Example query:

CREATE TABLE test
WITH ab AS (
    SELECT 1 as a, 2 as b
)
SELECT * from ab

Our response:

Error parsing SQL:
syntax error at position 23 near 'WITH'
CREATE TABLE test
WITH ab AS (
     ^

The MySQL documentation says this is explicitly allowed (https://dev.mysql.com/doc/refman/8.0/en/with.html) and it works in MySql.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions