postgresql query user

前端之家收集整理的这篇文章主要介绍了postgresql query user前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
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;
原文链接:https://www.f2er.com/postgresql/193374.html

猜你在找的Postgre SQL相关文章