Re: Can I drop a NOT NUL constrain on an existing table?

From: Justin <zzzzz(dot)graf(at)gmail(dot)com>
To: stan <stanb(at)panix(dot)com>
Cc: "pgsql-generallists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: Can I drop a NOT NUL constrain on an existing table?
Date: 2020-01-16 14:49:04
Message-ID: CALL-XePKmdChTV-gu-=Gm5O1oNACtAb90W4G9CdHGTYYKpmHfA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Alter table mytable drop constraint name_of_constraint

https://www.postgresql.org/docs/current/sql-altertable.html

On Thu, Jan 16, 2020 at 9:43 AM stan <stanb(at)panix(dot)com> wrote:

> I see how to do this if it is a "dcleared" constraint, but this was just
> defined in the table createion as inL
>
> report_no varchar UNIQUE ,
>
>
> --
> "They that would give up essential liberty for temporary safety deserve
> neither liberty nor safety."
> -- Benjamin Franklin
>
>
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Michael Nolan 2020-01-16 15:39:59 Re: Can I do this?
Previous Message Justin 2020-01-16 14:45:13 Re: Can I do this?