Hi, How can I get the names of all the tables in a database? Thomas
1. Log into the database "psql databasename" 2. just write "\dt" to list the tables And write "\h" and "\?" to see all the commands. Thomas Weholt wrote: > Hi, > > How can I get the names of all the tables in a database? > > Thomas
"select * from pg_tables" pg_tables is a system table. But it seems that it also returns the system tables. Thomas Weholt wrote: > Hi, > > I was hoping there was some SQL way to do it. I`m doing it thru a > python-module. > Sort alike "select datname from pg_database;". > > -----Original Message----- > From: Poul L. Christiansen [mailto:plc@faroenet.fo] > Sent: 27. juni 2000 12:56 > To: Thomas Weholt > Cc: 'pgsql-novice@hub.org' > Subject: Re: [NOVICE] Get all names of tables in a database > > 1. Log into the database "psql databasename" > 2. just write "\dt" to list the tables > > And write "\h" and "\?" to see all the commands. > > Thomas Weholt wrote: > > > Hi, > > > > How can I get the names of all the tables in a database? > > > > Thomas
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера