lava-oushudb-dt-sql-parser/test/parser/hive/syntax/fixtures/alterDatabase.sql
XCynthia 6dad62ddf4
check alter sql and syntax (#156)
* check and update abort and alter sql

* delete superfluous space

* update grammar lib after change alter parser

* update alter parser to be compatible

---------

Co-authored-by: zhaoge <>
2023-09-06 11:46:46 +08:00

23 lines
737 B
SQL

ALTER DATABASE mydb1 SET DBPROPERTIES ('creator'='hayden','date'='2023-07-07');
ALTER SCHEMA myschema1 SET DBPROPERTIES ('creator'='hayden','date'='2023-07-07');
ALTER DATABASE database_name SET OWNER USER hayden;
ALTER SCHEMA database_name SET OWNER USER `admin`;
ALTER DATABASE database_name SET OWNER ROLE jack;
ALTER SCHEMA database_name SET OWNER ROLE ddladmin;
ALTER DATABASE database_name SET OWNER zhaoge;
ALTER SCHEMA database_name SET OWNER zhaogeadmin;
ALTER DATABASE database_name SET LOCATION '/myhive/mydb';
ALTER SCHEMA database_name SET LOCATION '/myhive/myschema';
ALTER DATABASE database_name SET MANAGEDLOCATION '/myhive/myinnerdb';
ALTER SCHEMA database_name SET MANAGEDLOCATION '/myhive/myinnerschema';