DROP CONSTRAINT IF EXISTS

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

DROP CONSTRAINT IF EXISTS

От:
<william.a.dean@gdc4s.com>
Дата:
The sql statement  'ALTER TABLE  DROP CONSTRAINT IF EXISTS
' returns with a syntax error on exists.  The
documentation states that the IF EXISTS clause is allowed in DROP
CONSTRAINT statements.

Re: DROP CONSTRAINT IF EXISTS

От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
 writes:
> The sql statement  'ALTER TABLE  DROP CONSTRAINT IF EXISTS
> ' returns with a syntax error on exists.  The
> documentation states that the IF EXISTS clause is allowed in DROP
> CONSTRAINT statements.

Apparently you're reading 9.0 documentation and using a pre-9.0 server.
Please see the manual appropriate to your PG version.

			regards, tom lane
FAQ