Unstoppable Domains

MySQL: REGEXP

Spaceship Spaceship
Watch

evdoxos

Established Member
Impact
0
I want to make the following but using REGEXP:
SELECT * FROM table_Name WHERE (field_name LIKE 'key1' AND field_name LIKE 'key2' AND field_name LIKE 'key3');

Here is a way:
SELECT * FROM table_Name WHERE (field_name REGEXP ('key1') AND field_name REGEXP ('key2') AND field_name REGEXP ('key3'));
IS THERE A FASTER WAY?
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
Code:
SELECT *
FROM table_Name
WHERE field_name REGEXP('^key.*$')
 
0
•••
I was meaning:

SELECT * FROM table_Name WHERE (field_name REGEXP ('a_word') AND field_name REGEXP ('an_other_word') AND field_name REGEXP ('a_third_word'));

where the words: a_word, an_other_word, a_third_word are generally completely different.
 
Last edited:
0
•••
Dynadot — .com Registration $8.99Dynadot — .com Registration $8.99
Appraise.net

We're social

Domain Recover
DomainEasy — Payment Flexibility
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back