Subject | Re: [firebird-support] How to drop a contstraint where I don't know the name |
---|---|
Author | Martijn Tonies |
Post date | 2005-05-18T20:16:24Z |
> I need to drop a constraint from a table. I know the tablename and thatWithout knowing the name, you cannot drop the constraint.
> the constraint is a foreign key to another table. But as the constraint
> has no specific name, it can be called INTEG_xx....
>
> How can I now drop this constraint without knowing the name? I need to
> do this by script on several databases.
>
> Thank you
>
> Herbert
>
>
> ALTER TABLE CUSTOMERINFO DROP CONSTRAINT INTEG_87
With regards,
Martijn Tonies
Database Workbench - tool for InterBase, Firebird, MySQL, Oracle & MS SQL
Server
Upscene Productions
http://www.upscene.com