1. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

[SQL] Duplicate Entry Key error when initial 6 characters match

Discussão em 'Outras Linguagens' iniciado por Stack, Outubro 25, 2024 às 14:22.

  1. Stack

    Stack Membro Participativo

    I have a table BLE_PINS with columns TN, MAC, PIN, and Date. MAC is the primary key. When entering

    INSERT INTO `BLE_PINS` (`MAC`, `PIN`) VALUES ('SEEP413E68','99933');


    I get the error


    #1062 - Duplicate entry 'SEEP41' for key 'PRIMARY'`.

    It seems to be matching only the first 6 characters. Is there a way to change that?

    Continue reading...

Compartilhe esta Página