We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
CREATE TABLE ... SELECT
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SQLite, Postgres, MsSQL and MySQL all support the CREATE TABLE table_name(columns) AS SELECT ....
CREATE TABLE table_name(columns) AS SELECT ...
However, MySQL (and Mariadb) allow omitting the AS keyword, and specifying a table like
AS
CREATE TABLE bar (m INT) SELECT n FROM foo;
Currently, sqlparser parses this as two distinct statements: a create table followed by a select. Instead, it should parse it the same as
CREATE TABLE bar (m INT) AS SELECT n FROM foo;
https://dev.mysql.com/doc/refman/8.4/en/create-table-select.html
The text was updated successfully, but these errors were encountered:
CREATE TABLE SELECT
I believe this is fixed in #1515 (thanks @wugeer !)
Sorry, something went wrong.
No branches or pull requests
SQLite, Postgres, MsSQL and MySQL all support the
CREATE TABLE table_name(columns) AS SELECT ...
.However, MySQL (and Mariadb) allow omitting the
AS
keyword, and specifying a table likeCurrently, sqlparser parses this as two distinct statements: a create table followed by a select. Instead, it should parse it the same as
https://dev.mysql.com/doc/refman/8.4/en/create-table-select.html
The text was updated successfully, but these errors were encountered: