Re: [SQL] Drop NOT NULL constraint !!!

Поиск
Список
Период
Сортировка
От
Тема Re: [SQL] Drop NOT NULL constraint !!!
Дата
Msg-id 50448.203.145.129.4.1037819878.squirrel@mail.trade-india.com
обсуждение исходный текст
Ответ на Drop NOT NULL constraint !!!  (Renê Salomão <rene@ibiz.com.br>)
Список pgsql-general
do a \d tablename

for the name of the contraint.
say its $1
the do

psql> alter table <tablename> drop contstraint "$1" RESTRICT;

> Does anybody could tell me how to drop a constraint on a column where no name was provided to
> the constraint? How does Pg name constraints?
>
> Thanks
> --
> Renê Salomão
> Ibiz Tecnologia -- www.ibiz.com.br
>
>
> ---------------------------(end of broadcast)--------------------------- TIP 6: Have you
> searched our list archives?
>
> http://archives.postgresql.org



-----------------------------------------
Get your free web based email at trade-india.com.
   "India's Leading B2B eMarketplace.!"
http://www.trade-india.com/



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

Предыдущее
От: Francisco J Reyes
Дата:
Сообщение: Re: Grant question..
Следующее
От: public@ryanwright.com (Ryan Wright)
Дата:
Сообщение: Request assistance connecting with Pg::connectdb