2
I am studying mysql and came across the following situation and would like to know if there is a solution structuring my tables to solve this. Assuming I have two tables; user (id, user, password) and annotations(id, title, text, id_user). In the table annotations 'id_usuario' is a Foreign key. I would like the contents of the 'title' field of the 'annotations' table to be unique for each Foreign key. Thanks in advance!