PostgreSQL: Show tables in PostgreSQL

后端 未结 24 2597
醉梦人生
醉梦人生 2020-11-28 16:58

What\'s the equivalent to show tables (from MySQL) in PostgreSQL?

24条回答
  •  清酒与你
    2020-11-28 17:30

    1. First login as postgres user:

      sudo su - postgres

    2. connect to the required db: psql -d databaseName

    3. \dt would return the list of all table in the database you're connected to.

提交回复
热议问题