List:General Discussion« Previous MessageNext Message »
From:Krishna Chandra Prajapati Date:May 13 2008 8:30am
Subject:Table Structure
View as plain text  
Hi all,

Below is the user_delivery table structure.

CREATE TABLE `user_delivery` (
  `user_id` decimal(22,0) NOT NULL default '0',
  `delivery_id` decimal(22,0) NOT NULL default '0',
  `send_to_regulator` char(1) default NULL,
  PRIMARY KEY  (`user_id`),
  KEY `user_delivery_comp1` (`user_id`,`delivery_id`),
  CONSTRAINT `fk_user_delivery` FOREIGN KEY (`user_id`) REFERENCES
`user_info` (`user_id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

According to me user_delivery_comp1 index can be dropped and new index can
be created on delivery_id column. I would to know that the changes will work
or not. Yours suggestion regarding this table structure.

Thanks,
-- 
Krishna Chandra Prajapati

Thread
Table StructureKrishna Chandra Prajapati13 May
  • Re: Table StructureRob Wultsch14 May
    • Re: Table StructureKrishna Chandra Prajapati15 May
      • Re: Table StructureAnanda Kumar15 May
        • Re: Table StructureKrishna Chandra Prajapati16 May
          • Re: Table StructureAnanda Kumar16 May
            • Re: Table StructureKevin Hunter16 May
              • Re: Table StructureAnanda Kumar16 May
                • Re: Table StructureKevin Hunter16 May