SQL Script Question

Поиск
Список
Период
Сортировка
От Carolyn Wong
Тема SQL Script Question
Дата
Msg-id 38B37F13.C1D2D6F4@kss.net.au
обсуждение исходный текст
Ответы Re: [SQL] SQL Script Question
Список pgsql-sql
I'm trying to write SQL script to create tables as follows:

--------------------------------
drop table xxx;
create table xxx (
......
);
grant all on xxx to public;
--------------------------------

Before dropping the table, I'd like to check if the table exists as the
following psuedo code:

if <table exists>   drop table xxx;

How can i write this 'if' condition? Or are there any other ways to
check this??

Thanks in advance.


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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: [SQL] pg_group system table
Следующее
От: Andrzej Mazurkiewicz
Дата:
Сообщение: RE: [SQL] SQL Script Question