ITPub博客

首页 > 大数据 > 数据分析 > vertica 数据库日常操作(一)

vertica 数据库日常操作(一)

原创 数据分析 作者:KellyGu 时间:2018-12-31 21:38:32 1 删除 编辑

创建用户


步骤 1 、建 schema 。

方法一:create schema s1;

方法二:create schema if not exists s1:

 

步骤 2 、建用户。

方法:

Create user scott identified by tiger;

 

步骤 3 、将 schema 赋给用户。

方法一:将 vertica 默认的 schema public 赋给用户 scott:

Grant usage on schema public to scott;

方法二:将自定义的 schema s1 赋给用户 scott:

Grant usage on schema s1 to scott;

 

将 schema s1 中所有表的查询给用户 sott:

GRANT SELECT ON ALL TABLES IN SCHEMA s1 TO scott;

 

schema 其他操作:

1、   更名:

Alter schema s1 rename to s2;

2、   删除:

drop schema s1 cascade;  


来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/69902902/viewspace-2287071/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: 没有了~
下一篇: 没有了~
请登录后发表评论 登录
全部评论

注册时间:2018-12-16

  • 博文量
    1
  • 访问量
    4063