当前位置:Gxlcms > 数据库问题 > postgresql批量修改表的owner

postgresql批量修改表的owner

时间:2021-07-01 10:21:17 帮助过:215人阅读


技术图片

 

 



2.拼接sql

select ‘ALTER TABLE ‘ || table_name || ‘ OWNER TO yourowner;‘ from information_schema.tables where table_schema=‘public‘;



技术图片

 

 

 

 

 



3.报生成的sql 复制下来,执行即可

postgresql批量修改表的owner

标签:format   ring   table   方式   postgres   才有   修改表   row   pass   

人气教程排行