How to select a schema in postgres when using psql?

前端 未结 9 1022
死守一世寂寞
死守一世寂寞 2021-01-29 18:11

I have a postgres database with multiple schemas. When I connect to the database from a shell with psql and I run \\dt it uses the default connection s

9条回答
  •  渐次进展
    2021-01-29 19:07

    \l - Display database
    \c - Connect to database
    \dn - List schemas
    \dt - List tables inside public schemas
    \dt schema1. - List tables inside particular schemas. For eg: 'schema1'.
    

提交回复
热议问题