php - how to find all result with any keyword matched in mysql -


i have table called users. table has more 10 columns. want make search program return row if keyword match in string.

check attachment.. in attachment when trying search "rina" select * users first_name "%riaa%" or last_name '%rina%'

in condition getting result expected. but when try search '%rina sharma%' getting no result found. query searching whole keyword in each cell.

like
1st name have "rina sharma" => false
2nd name have "rina sharma" => false

i want either "rina"or "sharma" if keyword matched result should appear.

enter image description here

select * id c c.name regexp 'rina|sharma'; 

Comments

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -