greenplum下schema的使用
新建角色python:可以登陆,继承权限
CREATE role python WITH LOGIN ENCRYPTED PASSWORD ‘111111‘;
新建模式temp,给python用户存放临时表
CREATE SCHEMA temp;
grant all on schema temp to python;
grant create on schema temp to python;
grant usage on schema temp to python;
将gpadmin创建的表,授权给python
grant select on glfmwdkz to python;
python用户登陆后使用表(public模式下只读,temp可以读写):
create table temp.g1(like glfmwdkz);
insert into temp.g1 select * from glfmwdkz;
相关推荐
huavhuahua 2020-11-20
weiiron 2020-11-16
cakecc00 2020-11-15
千锋 2020-11-15
JakobHu 2020-11-14
guangcheng 2020-11-13
xirongxudlut 2020-11-10
solarLan 2020-11-09
pythonxuexi 2020-11-08
文山羊 2020-11-07
susmote 2020-11-07
wuShiJingZuo 2020-11-05
Pythonjeff远 2020-11-06
jacktangj 2020-11-04
lousir 2020-11-04
YENCSDN 2020-11-17
lsjweiyi 2020-11-17
houmenghu 2020-11-17
Erick 2020-11-17