I have a database which I manage with phpMyAdmin.
I have a table to save the verb tense
and the verb
. It looks like it follows:
Column | Type | Collation | Attributes | Null | Default | Extra
-------+-------------+-------------------+-------------+------+---------+------
form | varchar(50) | latin1_swedish_ci | | No | |
verb | varchar(50) | latin1_swedish_ci | | Yes | NULL |
and I created and index to have a faster access:
Keyname | Type | Unique | Packed | Column | Cardinality | Collation | Null | Comment
------------+-------+--------+--------+--------+-------------+-----------+------+--------
verbs_index | BTREE | Yes | No | form | 1 | A | |
| | | | verb | 1 | A | YES |
The goal of this is to have an association between a verb and all its verbs tenses (form
) but the problem comes when I try to insert a pair (form
,verb
) with an accent if the form without accent already exists. Those are the same words to MySql and I get the error:
Duplicate entry 'form-verb' for key 'verbs_index'.
I'd like to insert:
insert into verbs values('o','verb1'); (without accent)
insert into verbs values('ó','verb1'); (with accent)
I've been looking at collation stuff and I've already tried with every latin
and utf8
.