GaussDB使用到的语法
1、 创建一个用户mytest
create user mytest password ‘Xxxx@123’;
2、 表test的查询和删除表的权限赋予给mytest
grant select, delete on table test to mytest;
3、 更新test表a,b两列的权限赋给mytest
grant update(a,b) on table test to mytest;
4、 a,b两列字段更新权限回收
revoke update(a,b) on table t_test from u_test;
5、 创建角色arole并赋予审计管理
create role arole password ‘Xxxx@234’;
alter role arole with auditadmin;
6、 将角色arole 授予用户mytest
grant arole to mytest;
7、 创建用户mytest1并设置有效期
create user mytest1 with password ‘Xxxx@234’ valid begin ‘2024-12-01’ valid until ‘2024-12-31’;

浙公网安备 33010602011771号