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

[SQL] How to search table for special characters excluding some Hungarian letters?

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

  1. Stack

    Stack Membro Participativo

    I want to return all rows containing any other character than letters, numbers and space, but I also want to whitelist Hungarian letters. However when I run the following script:

    SELECT
    *
    FROM
    table T
    WHERE
    T.columnname REGEXP '[^a-zA-Z0-9 áéíóöőúüű]';


    It gives this error:


    SQL Error (1267): Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8mb4_general_ci,COERCIBLE) for operation 'regexp'

    What's the correct way to do this?

    Continue reading...

Compartilhe esta Página