I tried to use every single logic in my mind to resolve this problem, but this is the only solution that it worked. Answer This topic isn’t a question, this is the way that I found to solve the problem using multiple primary key, where an id is auto_increment in the table.