Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 2 of 2 total
Thread Drop REQUIRED using SQL
Mon, Oct 30 2006 12:10 PMPermanent Link

"Robert"
Wha tis the syntax from dropping a required constraint using SQL?

Robert

Tue, Oct 31 2006 9:48 AMPermanent Link

adam
If the constraint is created using a UNIQUE index you would use the statement:

DROP INDEX(TableName."IndexName") ;

If the constraint were the result of a condition created on an individual column you would
use REDEFINE for that column

i.e.

ALTER TABLE "TableName"
REDEFINE COLUMN "FieldName" [FieldType] ;

Simply not including the existing constraint in the REDEFINE would equate to it being
"dropped" from the columns definition.

--

At least this works for me in V3 (just about to update to V4!)

Adam


Image