[[ psql - PostgreSQL interactive terminal ]]

PostgreSQL

psql - PostgreSQL interactive terminal

  • \du - list of roles
  • \l - list of databases
  • \dn - list schemas
  • \dft - list of functions
  • \dt - list of tables
    • \dt schema_name.* - показать все таблицы в нужной схеме
    • \dt *.* - все таблицы во всех схемах
  • \d - list tables, views, and sequences
    • \d+ tablename - структура конкретной таблицы
  • \conninfo - connection information
  • \x - вывод в стоблик
  • \pset pager off - вывод в один лист без прокрутки






Обсуждение

Ваш комментарий. Вики-синтаксис разрешён:
13 -8 = 
 
tools/databases/postgres/psql.txt · Последнее изменение: 2022/08/31 14:53 — 127.0.0.1
Gentoo Linux Gentoo Linux Driven by DokuWiki