MySQL Forums
Forum List  »  Newbie

need to delete constraint
Posted by: Scott Purcell
Date: August 11, 2006 01:01PM

I have the following table and would like to remove the constraint called 'attributes_ibfk_2'

CREATE TABLE `attributes` (
`att_id` int(8) NOT NULL default '0',
`att_type_id` int(2) default '1',
`att_opt_grp_id` int(8) default NULL,
`att_name` varchar(50) default NULL,
PRIMARY KEY (`att_id`),
KEY `att_opt_grp_id` (`att_opt_grp_id`),
KEY `att_type_id` (`att_type_id`),
CONSTRAINT `attributes_ibfk_1` FOREIGN KEY (`att_opt_grp_id`) REFERENCES `att_option_group` (`att_opt_grp_id`),
CONSTRAINT `attributes_ibfk_2` FOREIGN KEY (`att_type_id`) REFERENCES `attribute_types` (`att_type_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;


Thanks,

Options: ReplyQuote


Subject
Written By
Posted
need to delete constraint
August 11, 2006 01:01PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.