e203f1a48a
* feat(impala): add impala sqlLexer * feat(impala): add impala grammar * feat(impala): add alter table sql * feat(impala): update alter table sql * feat(impala): add alter db sql * feat(impala): add alter view sql * feat(impala): add compute stats/comment statement and update partition_desc for alter table * feat(impala): add drop statement sql * feat(impala): add revoke and grant sql * feat(impala): add create db/function/role/view sql * feat(impala): add describe/explain/invalidata_metadata/load_data sql * feat(impala): add refresh/set/shutdown sql * feat(impala): add truncate_table/use/values sql * fix(impala): update shutdown and invaliddate_metadata * feat(impala): add show/update/upsert sql * feat(impala): add create/insert sql * feat(impala): add select and delete sql * feat(impala): add impala tokens and fix todo * feat(impala): update impalaparser and some test unit * feat(impala): add syntax suggestion * feat(impala): add syntax suggestion * feat(impala): update test unit * feat(impala): remove reference * fix(impala): add statement for sqlname and collect tableName * fix(impala): fix syntax suggestion unit test * fix(impala): update syntax suggestion and collect column * feat(impala): add collect column create
17 lines
816 B
SQL
17 lines
816 B
SQL
-- CREATE (DATABASE|SCHEMA) [IF NOT EXISTS] database_name[COMMENT 'database_comment'] [LOCATION hdfs_path];
|
|
CREATE DATABASE my_db;
|
|
CREATE DATABASE IF NOT EXISTS my_db1;
|
|
CREATE DATABASE my_db COMMENT 'my first db';
|
|
CREATE DATABASE my_db LOCATION '/path/to/partition';
|
|
CREATE DATABASE my_db COMMENT 'my first db' LOCATION '/path/to/partition';
|
|
CREATE DATABASE IF NOT EXISTS my_db COMMENT 'my first db' LOCATION '/path/to/partition';
|
|
CREATE SCHEMA my_schema;
|
|
CREATE SCHEMA IF NOT EXISTS my_schema1;
|
|
CREATE SCHEMA my_schema COMMENT 'my first schema';
|
|
CREATE SCHEMA my_schema LOCATION '/path/to/partition';
|
|
CREATE SCHEMA my_schema COMMENT 'my first schema' LOCATION '/path/to/partition';
|
|
CREATE SCHEMA IF NOT EXISTS my_schema COMMENT 'my first schema' LOCATION '/path/to/partition';
|
|
|
|
|
|
-- example
|
|
create database first_db; |