PostgreSQL: Show tables in PostgreSQL

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

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

24条回答
  •  谎友^
    谎友^ (楼主)
    2020-11-28 17:41

    First Connect with the Database using following command

    \c database_name
    

    And you will see this message - You are now connected to database database_name. And them run the following command

    SELECT * FROM table_name;
    

    In database_name and table_name just update with your database and table name

提交回复
热议问题