I would like to make a primary key in a SQLite table made of two columns which work like this:
- Columns:
id1,id2,value - Multiple rows can share
id1 - Multiple rows can share
id2 - But only one row can share both
id1andid2
I read a lot but all question I found told how to make two independent primary keys, but it is not my case.
Yes, you can do this.
See the reference of
CREATE INDEX.