Communities for your favorite technologies. Explore all Collectives
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Find centralized, trusted content and collaborate around the technologies you use most.
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
I am trying to make a query that will find a specific word like "mark" in a string from my data base. I don't know how to do it. I tried with INSTR and some other solutions from different sites but it doesn't work. (P.S.: I am working in Java).
The INSTR function should work here, assuming there aren't other unmentioned problems with your data:
INSTR
SELECT * FROM yourTable WHERE INSTR(some_column, 'mark') > 0;
Add a comment
Required, but never shown
By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.