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_usage
WHERE table_name = 'cons_test' AND
column_name = 'u';
See infoschema-constraint-column-usage.html in the manual for further
assistance.
Regards.