iafisher / sqliteparser

A parser for SQLite's dialect of SQL
https://sqliteparser.readthedocs.io/en/latest/
MIT License
1 stars 1 forks source link

Parse `CREATE TABLE AS SELECT` statements #1

Open iafisher opened 3 years ago

iafisher commented 3 years ago

Simple experimentation with the sqlite CLI shows that SQLite converts tables created in this way into regular CREATE TABLE statements when storing the schema:

> create table lol as select 1, 2, 3;
> select name, sql from sqlite_master;
lol|CREATE TABLE lol("1", "2", "3");

So this is low priority given the present motivation of this project.