sql Lista todososusuáriosemum banco de dados postgres。
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sql Lista todososusuáriosemum banco de dados postgres。相关的知识,希望对你有一定的参考价值。
SELECT u.usename AS "User name",
u.usesysid AS "User ID",
CASE WHEN u.usesuper AND u.usecreatedb THEN CAST('superuser, create
database' AS pg_catalog.text)
WHEN u.usesuper THEN CAST('superuser' AS pg_catalog.text)
WHEN u.usecreatedb THEN CAST('create database' AS
pg_catalog.text)
ELSE CAST('' AS pg_catalog.text)
END AS "Attributes"
FROM pg_catalog.pg_user u
ORDER BY 1;
以上是关于sql Lista todososusuáriosemum banco de dados postgres。的主要内容,如果未能解决你的问题,请参考以下文章