Test if a table is present

Поиск
Список
Период
Сортировка
Искать

Test if a table is present

От:
"Ole Ekerhovd" <olehare@online.no>
Дата:
How can I test if a table is present in database?
 
Regards,
Ole

Re: Test if a table is present

От:
"Anoop G" <anoopmadavoor@gmail.com>
Дата:


you can find it throuh a query like this


select tablename from pg_tables where tablename = 'tbl_updated_status_master';

regards:

Anoop

Re: Test if a table is present

От:
Volkan YAZICI <yazicivo@ttmail.com>
Дата:
On Sat, 26 Jul 2008, "Ole Ekerhovd"  writes:
> How can I test if a table is present in database?
 SELECT TRUE   FROM information_schema.tables  WHERE table_name   = '' AND        table_schema = ''

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


Regards.

FAQ