有没有办法使用主机地址和端口显示所有数据库名称? 喜欢SELECT current_database()显示当前连接的数据库。我需要显示所有数据库名称。 提前致谢。
SELECT current_database()
有一个表显示所有数据库:
SELECT * FROM pg_database;