mysql - SQL query for words (not the sentence) -
i query single column (varchar):
sample datarows:
1) fox jumps foo on bar 2) jumpers not cool 3) apple introduced ijump
when enter search criteria like... jump
i expect resultset of: jumps, jumpers, ijump (so dont want complete row)
currently i'm using mysql (i'm open suggestions long it's open source)
since you're using mysql, might suggest looking lib_mysqludf_preg.
this open source library provide additional regex functionality, including preg_capture function, extracts regex match string.
using function, build regex return match you're looking for... like:
\b\w*jump\w*\b
Comments
Post a Comment