Re: a database can be created but not droped

Поиск
Список
Период
Сортировка
От Frank Streitzig
Тема Re: a database can be created but not droped
Дата
Msg-id YuedQZ9nA+bLJiyT@frastr-dev
обсуждение исходный текст
Ответ на a database can be created but not droped  (Matthias Apitz <guru@unixarea.de>)
Список pgsql-general
Am Mon, Aug 01, 2022 at 11:22:33AM +0200 schrieb Matthias Apitz:
> testdb=# DROP DATABASE IF EXISTS  SRP-27097  WITH FORCE;
> ERROR:  syntax error at or near "-"
> ZEILE 1: DROP DATABASE IF EXISTS  SRP-27097  WITH FORCE;
>
> Why is this?

Please try: DROP DATABASE IF EXISTS "SRP-27097" WITH FORCE;

Best rehards
Frank



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

Предыдущее
От: Julien Rouhaud
Дата:
Сообщение: Re: a database can be created but not droped
Следующее
От: howardnews@selestial.com
Дата:
Сообщение: Re: Connecting to postgres on OSX from Swift using PostgresClientKit