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

15 lines
486 B
SQL

-- Syntax
-- DROP { DATABASE | SCHEMA } [ IF EXISTS ] dbname [ RESTRICT | CASCADE ]
CREATE DATABASE inventory_db COMMENT 'This database is used to maintain Inventory';
CREATE SCHEMA inventory_db COMMENT 'This database is used to maintain Inventory';
DROP DATABASE inventory_db CASCADE;
DROP SCHEMA inventory_db CASCADE;
DROP DATABASE IF EXISTS inventory_db CASCADE;
DROP SCHEMA IF EXISTS inventory_db CASCADE;
DROP DATABASE inventory_db RESTRICT;
DROP SCHEMA inventory_db RESTRICT;