Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

88
Views
Search functionality using wild card

I'm working on seach function where request is coming from front end with the wild card and based on the request it should output desired outcome.

Let's say we have a Name colum In DB with some records:

Name
---------
political party Delhi, IN (ruling)
political party Mumbai, IN (ruling)
political party Kerala, IN (not ruling)
political party Goa, IN (ruling)

Now from JSP page request is coming as *Del*ruling* (or request could come just as *Del*) 
and outcome should be: political party Delhi, IN (ruling).

I spent few days but could not find how to implement this functionality. Any guidance will be highly appreciated.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

MySQL supports wildcards. They are denoted by the % character and used in a LIKE statement. So just replace all '*' with '%' and you're good to go!

SELECT *
FROM articles
WHERE body LIKE '%Del%ruling%'
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!