Re: drop a check - Mailing list pgsql-sql

From Volkan YAZICI
Subject Re: drop a check
Date
Msg-id 20061113174138.GB1403@alamut
Whole thread Raw
In response to drop a check  (ivan marchesini <marchesini@unipg.it>)
Responses Re: drop a check
Re: drop a check
List pgsql-sql
On Nov 13 05:32, ivan marchesini wrote:
> I have created a check constraint without giving it a name..
> now I have a check named "$25" in my table that I need to drop or
> modify!!!
> How can I do???
> with names is simple
> 
> alter table tablename drop constraint constraintname;
> 
> but without name??   :-)

CREATE TABLE cons_test (   u   integer     CHECK (u > 10)
);

SELECT constraint_name FROM information_schema.constraint_column_usageWHERE table_name = 'cons_test' AND
column_name= 'u';
 

See infoschema-constraint-column-usage.html in the manual for further
assistance.


Regards.


pgsql-sql by date:

Previous
From: Richard Broersma Jr
Date:
Subject: Re: RES: Inserting data in composite types!
Next
From: Richard Broersma Jr
Date:
Subject: Re: Another question about composite types