lava-oushudb-dt-sql-parser/test/parser/hive/syntax/fixtures/createDatabase.sql
2023-07-07 14:48:44 +08:00

16 lines
446 B
SQL

CREATE DATABASE mydb;
CREATE SCHEMA myschema;
CREATE DATABASE IF NOT EXISTS mydb
COMMENT 'my test db'
LOCATION '/myhive/myoutdb'
MANAGEDLOCATION '/myhive/myindb'
WITH DBPROPERTIES ('creator'='ypc','date'='2021-03-09');
CREATE SCHEMA IF NOT EXISTS myschema
COMMENT 'my test myschema'
LOCATION '/myhive/myoutschema'
MANAGEDLOCATION '/myhive/myinschema'
WITH DBPROPERTIES ('creator'='ypc','date'='2021-03-09');