mysql Start with a specific word and search with initial consonants

Asked 2 years ago, Updated 2 years ago, 28 views

Hi, everyone. You want to find data from specific words to initial z. I searched for regular expressions, but I don't know how to do it, so I'm asking you this question.

I've looked for these methods

select * from (table) where (col) regexp '^[a-z]';

What he wants is Col = If it's 'appl'

I want to search for data from apple to initial consonant z.

mysql

2022-09-20 16:40

1 Answers

I don't have to lose, do you want to try this?

SELECT * FROM tableA
WHERE colK REGEXP '^[a-z]'
AND colK >= 'apple'


2022-09-20 16:40

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.