How can I search for all lines that contain a specific string?

LIKE seems to ignore certain lines in some cases. Can you search without ignoring any rows without using full-text indexing? How do you write if you can search one line at a time?

Apr.01,2021

use regular expressions, for example:

SELECT name FROM person_tbl WHERE name REGEXP '^[aeiou]|ok$';

it is not recommended to use sql processing directly. You can look it up in the database and then use regular expression search processing in your application.

Menu