Creating a MySQL SET's from a string -
Is there a way to create a set with a string of different values in MySQL? For example:
'fast, brown, fox' => 'the', 'quick', 'brown', 'fox'
without any inverse EXPORT_SET bit fading
Regards
If you are trying to use set in < In the statement, instead of dividing the string, you can make a comparison:
SELECT * FROM `table` WHERE ', fast, brown, fox' regexp (' (^ |,) ',' Word ',' (, | $) ');
I'm not sure how efficient it will be when your dataset is large, but it can be faster by reading and selecting in a temporary table.
Comments
Post a Comment