K
K
Kirill Michenus2017-08-24 12:21:23
MySQL
Kirill Michenus, 2017-08-24 12:21:23

Sql LIKE how to do case and character insensitive?

It took a LIKE query, taking into account only the letters of the Latin and Russian alphabet, without taking into account all other characters and without regard to case.
Prompt an example, or in what documentation to look.
And he should work as quickly as possible, because. There are more than 1 million entries in the table.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
0
0X12eb, 2017-08-24
@0X12eb

Caseless:
The full version is something like this: (if you need spaces, add \s )
where lover(column_name) regexp '^[a-zа-яё]+$';

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question