lava-oushudb-dt-sql-parser/test/parser/hive/syntax/fixtures/alterDatabase.sql

23 lines
737 B
MySQL
Raw Normal View History

2023-07-07 17:04:37 +08:00
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`;
2023-07-07 17:04:37 +08:00
ALTER DATABASE database_name SET OWNER ROLE jack;
2023-07-07 17:04:37 +08:00
ALTER SCHEMA database_name SET OWNER ROLE ddladmin;
ALTER DATABASE database_name SET OWNER zhaoge;
ALTER SCHEMA database_name SET OWNER zhaogeadmin;
2023-07-07 17:04:37 +08:00
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';