forked from docs/doc-exports
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: Lu, Huayi <luhuayi@huawei.com> Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
1.1 KiB
1.1 KiB
How Can I Export All Tables and Views from a Database?
You can use pg_tables and pg_views to query all table information and views in a database. Example:
SELECT * FROM pg_tables; SELECT * FROM pg_views;
For details about the returned columns, see "PG_TABLES" and "PG_VIEWS" in the Developer Guide.
Parent topic: Database Usage