Psql list all tables

后端 未结 6 1550
一个人的身影
一个人的身影 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:58

    In SQL Query, you can write this code:

    select table_name from information_schema.tables where table_schema='YOUR_TABLE_SCHEME';
    

    Replace your table scheme with YOUR_TABLE_SCHEME;

    Example:

    select table_name from information_schema.tables where table_schema='eLearningProject';
    

    To see all scheme and all tables, there is no need of where clause:

    select table_name from information_schema.tables
    

提交回复
热议问题