PostgreSQL: Show tables in PostgreSQL

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

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

24条回答
  •  一个人的身影
    2020-11-28 17:32

    1. In PostgreSQL command-line interface after login, type the following command to connect with the desired database.

          \c [database_name]
      

    Then you will see this message You are now connected to database "[database_name]"

    1. Type the following command to list all the tables.

          \dt
      

提交回复
热议问题