There is a way to rename constraint that have not a name?

I have a database with a no name constraint primary key in many tables.

I learned my lesson and I would repair to this situation.

There is a simple way to assign a name to all no name constraints?

Like this statement:

UPDATE
   rdb$relation_constraints
SET
   rdb$constraint_name = 'MyPrimaryKeyName'
WHERE
   rdb$relation_name = MyTable
   AND rDB$CONSTRAINT_TYPE = 'PRIMARY KEY'

There are contraindications?

Thanks
-- 

Luigi Siciliano
--------------------------



------------------------------------

------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Visit http://www.firebirdsql.org and click the Documentation item
on the main (top) menu.  Try FAQ and other links from the left-side menu there.

Also search the knowledgebases at http://www.ibphoenix.com/resources/documents/ 

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
------------------------------------

Yahoo Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/firebird-support/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/firebird-support/join
    (Yahoo! ID required)

<*> To change settings via email:
    [email protected] 
    [email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo Groups is subject to:
    https://info.yahoo.com/legal/us/yahoo/utos/terms/

Reply via email to