if exists / where exisyts....

Поиск
Список
Период
Сортировка
От Denis Cartier Millon
Тема if exists / where exisyts....
Дата
Msg-id 3CEE4A50.2090802@Wanadoo.fr
обсуждение исходный текст
Ответы Re: if exists / where exisyts....
Список pgsql-interfaces
i want to test if a table exists before to drop this......

the :
if exists (select 1 from pg_tables where tablename = "thetable")
drop table thetable
;

don't work....

i try :

wher e exists (....)
;

don't work.


but the expresssion :
select * from pg_tables where exists(select 1 from pg_tables where 
tablename = "thetable")
;

work






В списке pgsql-interfaces по дате отправления:

Предыдущее
От: Ron Johnson
Дата:
Сообщение: Re: libpq - description of columns
Следующее
От: Ron Johnson
Дата:
Сообщение: Re: if exists / where exisyts....