Hi
I have quite a simple problem but i can't find a simple answer
I have a table with 3 cols : 'client_id', 'doc_id', 'dl_date'
if a client downloads a document a new row is inserted - but if the client re-downloads the same doc the insert has to fail if an identical 'client_id'/'doc_id' pair is already present
i don't want to "ON DUPLICATE KEY UPDATE" the row because I don't want the original 'dl_date' to change and i can't use REPLACE because the cols can't be UNIQUE and that would update 'dl_date' too
how might I do this with just 1 query ?
thanks