Re: sql command to drop everything

Поиск
Список
Период
Сортировка
От CoL
Тема Re: sql command to drop everything
Дата
Msg-id bqracg$2igu$2@news.hub.org
обсуждение исходный текст
Ответ на sql command to drop everything  (Bryan Irvine <bryan.irvine@kingcountyjournal.com>)
Список pgsql-novice
Hi,

Bryan Irvine wrote, On 12/6/2003 2:04 AM:

> Is there a SQL command to delete everything (including the tables) from
> a db?  Not a complete drop so that the db doesn't exist anymore, but
> just so that there's nothing in it.

you can drop the schema.

drop schema NAME cascade;

C.

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

Предыдущее
От: "Taylor Lewick"
Дата:
Сообщение: relationship/table design question
Следующее
От: epz
Дата:
Сообщение: newbie needs help seting up for gentoo