>> Sorry, I don't understand what you are trying to say. Could you give an
>> example?
>>
> CREATE TABLE Attribute (
> ID INT NOT NULL,
> SubID INT NOT NULL AUTO_INCREMENT,
> PRIMARY KEY (ID, SubID),
> );
>
> This isn't allowed with InnoDB while MyISAM and according to the docs
> BDB does. "SubID" may not use "AUTO_INCREMENT".
I see. You can make SubID the primary key (if you want to) and define a
unique index for the compound key:
CREATE TABLE Attribute (
ID INT NOT NULL PRIMARY KEY,
SubID INT NOT NULL AUTO_INCREMENT,
UNIQUE INDEX (ID, SubID)
);
--
Willem Bogaerts
Application smith
Kratz B.V.
http://www.kratz.nl/