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

14 lines
717 B
SQL

-- Syntax ALTER PROPERTIES
-- ALTER { DATABASE | SCHEMA | NAMESPACE } database_name SET { DBPROPERTIES | PROPERTIES } ( property_name = property_value [ , ... ] )
ALTER DATABASE inventory SET DBPROPERTIES ('Edited-by' = 'John', 'Edit-date' = '01/01/2001');
ALTER DATABASE inventory SET PROPERTIES ('Edited-by' = 'John', 'Edit-date' = '01/01/2001');
-- Syntax ALTER LOCATION
-- ALTER { DATABASE | SCHEMA | NAMESPACE } database_name SET LOCATION 'new_location'
ALTER DATABASE inventory SET LOCATION 'file:/temp/spark-warehouse/new_inventory.db';
ALTER SCHEMA inventory SET LOCATION 'file:/temp/spark-warehouse/new_inventory.db';
ALTER NAMESPACE inventory SET LOCATION 'file:/temp/spark-warehouse/new_inventory.db';