![]() |
using mysql to search for a value in a comma delineated list?
I have a table in mysql with comma delineated values, i'm wondering if anyone knows a good strategy to searching for a value inside the comma delineated list across multiple tables?
thanks! |
Quote:
select blah from table where find_in_set(value, comma_list_field) It does an ALL table scan and is thus inefficient, and should only be used when you have a very small table or where clauses that limit the scan to a small range. |
Thanks! thats EXACTLY what I needed. Much much appreciated :)
|
All times are GMT. The time now is 11:14 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|