The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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! |
#2
|
||||
|
||||
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. |
#3
|
|||
|
|||
Thanks! thats EXACTLY what I needed. Much much appreciated
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|