Example: table "products the order"
CREATE TABLE `eoprd` (
`ordno` int(10) NOT NULL DEFAULT '0',
`qtty` int(10) NOT NULL DEFAULT '0',
`price` bigint(15) NOT NULL DEFAULT '0',
`seqno` int(10) NOT NULL DEFAULT '0',
`auxLong1` int(10) NOT NULL DEFAULT '0',
`auxLong2` int(10) NOT NULL DEFAULT '0',
`auxLong3` int(10) NOT NULL DEFAULT '0',
`auxLong4` int(10) NOT NULL DEFAULT '0',
`auxMy1` bigint(15) NOT NULL DEFAULT '0',
`auxMy2` bigint(15) NOT NULL DEFAULT '0',
`storeno` smallint(5) NOT NULL DEFAULT '0',
`empno` smallint(5) NOT NULL DEFAULT '0',
`status` smallint(5) NOT NULL DEFAULT '0',
`bits` smallint(5) NOT NULL DEFAULT '0',
`padbyte` smallint(5) NOT NULL DEFAULT '0',
`reserved` smallint(5) NOT NULL DEFAULT '0',
`bits2` smallint(5) NOT NULL DEFAULT '0',
`bits3` smallint(5) NOT NULL DEFAULT '0',
`bits4` smallint(5) NOT NULL DEFAULT '0',
`bits5` smallint(5) NOT NULL DEFAULT '0',
`prdno` char(16) NOT NULL DEFAULT '',
`grade` char(8) NOT NULL DEFAULT '',
`memo` char(180) NOT NULL DEFAULT '',
`auxString` char(20) NOT NULL DEFAULT '',
PRIMARY KEY (`storeno`,`ordno`,`prdno`,`grade`),
KEY `i2` (`ordno`),
KEY `i3` (`prdno`,`grade`,`storeno`),
KEY `i4` (`storeno`,`ordno`,`seqno`,`prdno`,`grade`),
KEY `i5` (`storeno`,`status`,`prdno`,`grade`),
KEY `i6` (`storeno`,`prdno`,`grade`,`status`)
) ENGINE=MyISAM;
Atenciosamente,
--
Gladyston Pereira Batista
Sócio-Diretor / Stone Tecnologia
Belo Horizonte-MG / (31)8638-8101