Re: Test if a table is present - Mailing list pgsql-sql

From Volkan YAZICI
Subject Re: Test if a table is present
Date
Msg-id 87bq0li4bo.fsf@alamut.mobiliz.com.tr
Whole thread Raw
In response to Test if a table is present  ("Ole Ekerhovd" <olehare@online.no>)
List pgsql-sql
On Sat, 26 Jul 2008, "Ole Ekerhovd" <olehare@online.no> writes:
> How can I test if a table is present in database?
 SELECT TRUE   FROM information_schema.tables  WHERE table_name   = '<TABLE>' AND        table_schema = '<SCHEMA>'

BTW, this query is portable across database systems supporting
information schema, which is an almost defacto standard.


Regards.


pgsql-sql by date:

Previous
From: "Anoop G"
Date:
Subject: Re: Test if a table is present
Next
From: Allan Kamau
Date:
Subject: Efficiently determining the number of bits set in the contents of a VARBIT field