13 May 18 · npack ·       Add to Favorites   Report

Drop a foreign key constraint from a Teradata table

To drop the foreign key reference from a table,

Syntax:

ALTER TABLE {MyDB}.{MyTable} DROP FOREIGN KEY ({ColumnList}) REFERENCES {MyDB}.{MyOtherTable};

To drop foreign keys with soft RI:

ALTER TABLE {MyDB}.{MyTable} DROP FOREIGN KEY ({Column}) REFERENCES WITH NO CHECK OPTION {MyDB}.{MyOtherTable}({Column});

npack

posted on 13 May 18

Read great educational content like this and a lot more !

Members get free exclusive access to content, new courses, and discounts. Signup for a free account to write a post / comment / upvote posts. Creating an account takes less than 5 seconds and you can start earning badges & points too

Copied