在数据库中有两个方案时,如何在PostgreSql中显示所有表?

在数据库中有两个方案时,如何在PostgreSql中显示所有表?,postgresql,Postgresql,my_db中有两个方案。我需要在scheme\u one中显示所有表的名称。如何做到这一点?您可以使用PostgreSQL,如下所示: select table_name from information_schema.tables where table_schema = 'scheme_one';

my_db
中有两个方案。我需要在
scheme\u one
中显示所有表的名称。如何做到这一点?

您可以使用PostgreSQL,如下所示:

select table_name from information_schema.tables where table_schema = 'scheme_one';