PostgreSQL: Show tables in PostgreSQL

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

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

24条回答
  •  眼角桃花
    2020-11-28 17:45

    You can list the tables in the current database with \dt.

    Fwiw, \d tablename will show details about the given table, something like show columns from tablename in MySQL, but with a little more information.

提交回复
热议问题