Sqlite supports composite primary keys, so I will show this in the Guide from this link :
The CREATE TABLE command indicates the following attributes of the new table:
...
Optional, PRIMARY KEY for the table. Both columns and compound (multiple columns).
, , , sqlite OR IGNORE duplicate clash, .
, :
INSERT OR IGNORE INTO selectedObject ( museum , atwork , beaconCode , qrCode)
VALUES ('".$museo."','" .$opera."','".$codiceBeacon."', '".$codice_qr_random."');
(), update .
? , INSERT - , . , 3 4. , , .
, , .
duplicate clash , , ( ).