lava-oushudb-dt-sql-parser/test/parser/spark/syntax/fixtures/createDatabase.sql
琉易 d13a92914d
feat: spark sql DDL test (#170)
Co-authored-by: liuyi <liuyi@dtstack.com>
2023-10-09 09:49:48 +08:00

24 lines
1.5 KiB
SQL

-- Syntax
-- CREATE { DATABASE | SCHEMA } [ IF NOT EXISTS ] database_name [ COMMENT database_comment ] [ LOCATION database_directory ] [ WITH DBPROPERTIES ( property_name = property_value [ , ... ] ) ]
CREATE DATABASE IF NOT EXISTS customer_db;
CREATE DATABASE customer_db;
CREATE SCHEMA IF NOT EXISTS customer_db;
CREATE SCHEMA customer_db;
CREATE DATABASE IF NOT EXISTS customer_db COMMENT 'This is customer database' LOCATION '/user' WITH DBPROPERTIES (ID=001, Name='John');
CREATE DATABASE IF NOT EXISTS customer_db LOCATION '/user' WITH DBPROPERTIES (ID=001, Name='John');
CREATE DATABASE IF NOT EXISTS customer_db WITH DBPROPERTIES (ID=001, Name='John');
CREATE DATABASE customer_db COMMENT 'This is customer database' LOCATION '/user' WITH DBPROPERTIES (ID=001, Name='John');
CREATE DATABASE customer_db LOCATION '/user' WITH DBPROPERTIES (ID=001, Name='John');
CREATE DATABASE customer_db WITH DBPROPERTIES (ID=001, Name='John');
CREATE SCHEMA IF NOT EXISTS customer_db COMMENT 'This is customer database' LOCATION '/user' WITH DBPROPERTIES (ID=001, Name='John');
CREATE SCHEMA IF NOT EXISTS customer_db LOCATION '/user' WITH DBPROPERTIES (ID=001, Name='John');
CREATE SCHEMA IF NOT EXISTS customer_db WITH DBPROPERTIES (ID=001, Name='John');
CREATE SCHEMA customer_db COMMENT 'This is customer database' LOCATION '/user' WITH DBPROPERTIES (ID=001, Name='John');
CREATE SCHEMA customer_db LOCATION '/user' WITH DBPROPERTIES (ID=001, Name='John');
CREATE SCHEMA customer_db WITH DBPROPERTIES (ID=001, Name='John');