mirror of
https://github.com/hanzo-ds/sqlparser.git
synced 2026-10-30 20:53:50 +00:00
12 lines
232 B
SQL
12 lines
232 B
SQL
-- Origin SQL:
|
|
CREATE VIEW IF NOT EXISTS my_view(col1 String, col2 String)
|
|
AS
|
|
SELECT
|
|
id,
|
|
name
|
|
FROM
|
|
my_table;
|
|
|
|
-- Format SQL:
|
|
CREATE VIEW IF NOT EXISTS my_view (col1 String, col2 String) AS SELECT id, name FROM my_table;
|