From: Roberto Mello <rmello@cc.usu.edu>
To: Magnus Landahl <magnus.landahl@datessa.se>
Cc: pgsql-sql@postgresql.org
Subject: Re: Get the tables names?
Date: Fri, 20 Jul 2001 12:27:15 -0600
Message-ID: <20010720122715.A5060@cc.usu.edu> (raw)
In-Reply-To: <9j67ra$m1$1@news.tht.net>
References: <9j67ra$m1$1@news.tht.net>
On Thu, Jul 19, 2001 at 11:04:40AM +0200, 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 NOT LIKE '%pg_%';
The "NOT LIKE" part is to avoid getting the PostgreSQL internal tables
in the output.
-Roberto
--
+----| http://fslc.usu.edu USU Free Software & GNU/Linux Club |------+
Roberto Mello - Computer Science, USU - http://www.brasileiro.nethttp://www.sdl.usu.edu - Space Dynamics Lab, Developer
*** TURN OFF YOUR SYSTEM NOW !!! ***
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: rmello@cc.usu.edu, magnus.landahl@datessa.se
Subject: Re: Get the tables names?
In-Reply-To: <20010720122715.A5060@cc.usu.edu>
* 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