ksql -Usystem -dtest --创建用户 create user u1_test with password 'test12#$'; --修改用户 alter user u1_test rename to u1_new; ksql -Usystem -dtest --创建测试模式 create schema u1_new; \c test u1_new set search_path =u1_new; create table t (id int);--失败 --1、将模式的权限授予用户 \c test system grant all on schema u1_new to u1_new; --校验权限是否已具备 \c test u1_new set search_path =u1_new; create table t (id int);--成功 Drop table t; --2、回收模式权限 \c test system revoke all on schema u1_new from u1_new; \c test u1_new set search_path =u1_new; create table t (id int);--失败 |
--用户的删除 ksql -Usystem -dtest drop schema u1_new cascade ; revoke ALL on SCHEMA public from u1_new ; drop user u1_new ; |
kingbase建用户删除用户命令
最新推荐文章于 2024-04-01 15:33:00 发布