pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Nils Zonneveld <nils@mbit.nl>
To: pgsql-sql@postgresql.org
Subject: Re: Get the tables names?
Date: Fri, 20 Jul 2001 00:51:12 +0200
Message-ID: <3B576455.4F927009@mbit.nl> (raw)
References: <9j67ra$m1$1@news.tht.net>



Magnus Landahl wrote:
> 
> Hi everybody!
> 
> Is it possible to get the names of all tables in the database with a sql
> query??
> 

select tablename from pg_tables where tablename !~ '^pg_';

or more SQL92 like:

select tablename from pg_tables where tablename not like 'pg_%';

Kind regards,

Nils Zonneveld

-- 
Alles van waarde is weerloos
Lucebert



view thread (10+ messages)  latest in thread

Message-ID: <3B576455.4F927009@mbit.nl>
Permalink:  ../3B576455.4F927009@mbit.nl/
Also on:    postgresql.org/message-id/3B576455.4F927009@mbit.nl

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: nils@mbit.nl
  Subject: Re: Get the tables names?
  In-Reply-To: <3B576455.4F927009@mbit.nl>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox