pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ivo Simicevic <ivo@ultra.hr>
To: Edouard DESSIOUX <edx@intrinsec.com>
Cc: pgsql-interfaces@postgreSQL.org
Subject: Re: [INTERFACES] Table or not table ?
Date: Mon, 13 Dec 1999 18:31:43 +0100
Message-ID: <19991213183143.B1280@ultra.hr> (raw)
In-Reply-To: <99121317261008.01232@dooz.corp.intrinsec.com>
References: <99121317261008.01232@dooz.corp.intrinsec.com>

On Mon, Dec 13, 1999 at 05:23:59PM +0100, Edouard DESSIOUX wrote:
> Hello
> 
> I wanted to be sure that a table exist before
> making a request such as "select * from $table"
> because it display something like 
> 
> Warning: PostgresSQL query failed: 
> ERROR: prout: Table does not exist. in
> /www/dooz.corp.intrinsec.com/tableau.php3 on line 15
> 
> Does anyone know what i could do to verify that
> the table exist, or help to disable error messages
> on web pages ?
> 
> Bye
> 
> -- 

Try

select * from pg_tables where tablename="wanted_table";

Ivo.



view thread (3+ messages)

Message-ID: <19991213183143.B1280@ultra.hr>
Permalink:  ../19991213183143.B1280@ultra.hr/
Also on:    postgresql.org/message-id/19991213183143.B1280@ultra.hr

 · 

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-interfaces@postgresql.org
  Cc: ivo@ultra.hr, edx@intrinsec.com
  Subject: Re: [INTERFACES] Table or not table ?
  In-Reply-To: <19991213183143.B1280@ultra.hr>

* 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