i have a table with primary key defined (post_id,category_id).his table implement Many_Many relation. how to add a autoincrement field to this table (i usually use auto_increment field to easily fetch records and use auto_increment value in form). when i try to add auto_increment field i get this error:
Multiple primary key defined
is there any need to have auto_increment fields when i have composite primary key? if yes how to do this?