查詢當前數據庫名、用戶名、數據庫服務器IP、端口、數據庫版本信息。

查詢當前鏈接的數據庫名與用戶名 postgres=# SELECT current_user; current_user -------------- postgres (1 row) postgres=# SELECT current_database(); current_database ------------------ postgres (1 row) 查詢所鏈接數據庫的版本信息
相關文章
相關標籤/搜索