问题:
When I do a \\dt
in psql I only get a listing of tables in the current schema ( public
by default).当我在 psql 中执行\\dt
,我只能获得当前模式中的表列表(默认情况下为public
)。
How can I get a list of all tables in all schemas or a particular schema?如何获取所有模式或特定模式中所有表的列表?
解决方案:
参考一: https://stackoom.com/question/13dl2参考二: List tables in a PostgreSQL schema