danny_ebbers
-
Posts
1 -
Joined
-
Last visited
Never
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.
TRANSACTIONS+AUTO_INCREMENT+multifield PRIMARY KEY
in MySQL Help
Posted
I would like to create this table in InnoDB because i need transactions
when i add
then it works fine
but when i use
then it gives the following error:
The point is that i have to insert records when knowing all weeknr and year
The auto increment should depend on the rest of the primary key, thats why i cannot use UNIQUE INDICES instead of Primary Key?
so for the primary key i could insert records like this
12 - 0 - 2003
12 - 1 - 2003
12 - 2 - 2003
13 - 0 - 2003
13 - 1 - 2003
13 - 2 - 2003
Anyone any suggestion how to implement this successfull in my application