查询当前数据库名、用户名、数据库服务器IP、端口、数据库版本信息。

查询当前链接的数据库名与用户名 postgres=# SELECT current_user; current_user -------------- postgres (1 row) postgres=# SELECT current_database(); current_database ------------------ postgres (1 row) 查询所链接数据库的版本信息
相关文章
相关标签/搜索