当前位置: 首页 > news >正文

建设网站的目的中国建设劳动学会官方网站是多少

建设网站的目的,中国建设劳动学会官方网站是多少,泰州建站价格,万网企业网站建设pgsql-用户角色组角色创建和维护 环境 win10pgsql 14.2 相关文档 PostgreSQL 14.1 手册 create 语法 grant 授权语法 revoke 撤回语法 alter 更新语法 用户、角色、组角色概念和区别 早期版本#xff08;8.1之前#xff09;中用户、组、角色是不同的概念#…pgsql-用户角色组角色创建和维护 环境 win10pgsql 14.2 相关文档 PostgreSQL 14.1 手册 create 语法 grant 授权语法 revoke 撤回语法 alter 更新语法 用户、角色、组角色概念和区别 早期版本8.1之前中用户、组、角色是不同的概念现在角色的概念把“用户”和“组”的概念都包括在内。角色可以完成登录用户、组角色功能。 作为组角色时可以不为角色分配login属性作为登录用户时可以添加login属性并设置认证类型登录密码如 password ‘123456’为角色授予访问权限如为数据库对象schema、table或者column的访问权限每种对象有不同的特性 数据库对象的关系 database 数据库实例一个实例可以包含多个schema不同实例间数据不共享scheam 模式对表的一个分组同实例下的模式可以共享table 数据表 以上可以统称为数据库对象授权体系中需要不同对象有相关的特性都需要独立授权 ps:如果对表授予select权限但是无schema的usage权限查询时会提示用户没有xx模式的权限但是有schema的usage权限时同时具备了表的curd权限感觉不应该出现这个现象 创建测试表 ‘’’ create schema mall; –建table create table mall.product ( id varchar(32) not null constraint product_pk primary key, name varchar(128), price int ); create table mall.“order” ( id varchar(32) not null constraint order_pk primary key, count int, price int ); –数据初始化 insert into mall.product(id,name,price) values (‘p1’,‘n1’,1),(‘p2’,‘n2’,2),(‘p3’,‘n3’,3); insert into mall.order(id,count,price) values (‘o1’,1,1),(‘o2’,2,2),(‘o3’,2,3); –CRUD验证 select * from mall.product; delete from mall.product where id‘x’; update mall.product set name‘x’ where id‘x’; insert into mall.product(id,name,price) values (‘p1’,‘n1’,1); select * from mall.order; ‘’’ 测试用例 ‘’’ –基础语法结构 /* 创建CREATE ROLE role_name; 授权GRANT group_role TO role1, … ; 撤回REVOKE group_role FROM role1, … ; 删除DROP ROLE role_name; */ –角色组语法 create role group_role;–创建组角色 create role role1; create role role2; grant group_role to role1; grant group_role to role1,role1; –角色用户 create role w_user login password ‘123456’; --准许登录并设置密码 create role r_user login password ‘123456’; alter role r_user password ‘123123’; --修改密码 –scheam权限 { CREATE | USAGE } grant all on schema mall to w_user;–所有特性授予单个角色 grant all on schema mall to w_user,r_user;–所有特性授予多个角色 grant all on schema mall to public;–所有特性授予所有角色 grant usage on schema mall to r_user; revoke all on schema mall from w_user; --撤回 –table权限 grant all on mall.product to w_user;–单表单用户 grant all on mall.product,mall.“order” to w_user;–多表单用户 grant all on all tables in schema mall to w_user,r_user;–所有表多用户 grant all on all tables in schema mall to public;–所有表所有用户 grant all on mall.product to r_user; grant all on all tables in schema mall to r_user; revoke all on all tables in schema mall from r_user; –撤回授权 revoke all on schema mall from public;–所有用户mall模式下的所有权限 revoke all on schema mall from w_user;–单用户mall模式下的所有权限 revoke all on all tables in schema mall from w_user;–单用户mall下所有表的crud权限 revoke all on all tables in schema mall from public;–所有用户mall下表的所有权限 revoke all on schema mall from r_user; revoke all on all tables in schema mall from r_user; ‘’’ 总结 pgsql高版本中授权体系里将用户、组、角色都合并到role对象中完全松散管理。没有login特性的role可以理解为角色带login特性的可以理解为用户 官方文档中grant 授权语法里的语法结构仔细的看看结构基本一致注意下on后边的关键字对角色的理解很有帮助。
http://www.sczhlp.com/news/154649/

相关文章:

  • 2025 年数据恢复系统推荐转转大师数据恢复,深度剖析各款系统平台核心优势与适用场景数据恢复系统推荐指南
  • 2025 年离心泵厂家 TOP 企业品牌推荐排行榜!化工,卧式多级,不锈钢,立式,氟塑料,管道,衬氟,耐腐蚀离心泵推荐这十家公司!
  • AT_agc048_b [AGC048B] Bracket Score
  • 2025 年热浸塑钢管工厂 TOP 企业品牌推荐排行榜 ,nhap/NHAP/ 电力 / N-HAP/200 / 新型防腐热浸塑钢管 / 热浸塑穿线钢管 / 电力钢管 / 电力涂塑钢管推荐!
  • 网站建设产品图片尺寸要求蜘蛛爬取网站
  • 网站项目设计书网页网页设计班
  • 网站建设开题报告网站名称收录
  • wordpress多站点无法访问买虚机送网站建设
  • 建设数据库搜索网站wordpress邮件评论
  • 公司网站建设技术的发展遂宁企业网络推广方案
  • 营销方案 网站什么网站都能打开的浏览器
  • 大学生创新创业网站开发建设网站 翻译
  • wordpress常用主题修改宁波网站关键词优化公司
  • 求个免费网站好人有好报在wordpress中rss订阅的步骤是什么?
  • 获得网站php管理员密码网站定制哪儿济南兴田德润怎么联系
  • 做招聘求职网站河北手机版建站系统开发
  • 自助网站建设 网易威海seo优化公司
  • 如何做网站更新wordpress个人下载网站模板下载
  • 移动端购物网站建设小学生编程课主要学什么
  • 江西哪里有做电商网站的公司推荐网站建设服务商
  • 门户网站建设费用科目室内装修装饰设计
  • 网站大图分辨率做多大上海大型网站设计公司
  • 500强企业网站有哪些青岛市建设工程质量安全监督站官方网站
  • 酒泉网站建设平台个人域名wordpress突然连不上
  • ipad怎么制作网站珠海市建设工程质量监督检测站网站
  • 查网站域名南昌百度关键词搜索
  • 服务器php网站打不开做一个同城app得多少钱
  • 做淘宝客网站服务器深圳办公室设计
  • 如何向雅虎提交网站郴州网站开发公司
  • 旅游网站的功能设计门户网站模板 html