LIKE '%foo%'
isn't giving you a narrow enough result list?Well, I'm sure you know how to narrow down those SQL results with a regex! So all there is to it is the
REGEXP
operator! Yay!Example:
SELECT * FROM table WHERE column REGEXP 'data[0-9]';
You get the point; now enjoy! Cheers!
No comments:
Post a Comment