Psql list all tables

后端 未结 6 1574
一个人的身影
一个人的身影 2020-12-22 17:17

I would like to list all tables in the liferay database in my PostgreSQL install. How do I do that?

I would like to execute SELECT * FROM applicat

6条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-22 17:53

    Connect to the database, then list the tables:

    \c liferay
    \dt
    

    That's how I do it anyway.

    You can combine those two commands onto a single line, if you prefer:

    \c liferay \dt
    

提交回复
热议问题