tyrant1969
Programmer
In my DB I have a field which contains one of three things - blank(nothing), a single item, or a list of items that are comma separated.
For example the first two entries contain
print
stat,print
I am running a query to grab the items that contain print as either the only item in the list or one of the items.
Here's the query code:
It returns one record, the one where the field only reads as "print". I've even tried putting the where clause to read with ',print' and then get absolutely nothing (of course).
Any thoughts?
For example the first two entries contain
stat,print
I am running a query to grab the items that contain print as either the only item in the list or one of the items.
Here's the query code:
Code:
<cfquery datasource="#application.ds#" name="getlist">
select itemname,reqs from items
where 'print' in (reqs)
</cfquery>
It returns one record, the one where the field only reads as "print". I've even tried putting the where clause to read with ',print' and then get absolutely nothing (of course).
Any thoughts?