Help Center/ GaussDB(DWS)/ More Documents/ User Guide/ FAQs/ Database Usage/ How Can I Export All Tables and Views from a Database?
Updated on 2023-03-08 GMT+08:00

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;