Question
SQL Search list for value
Hello all,
I am trying to search a huge table of users to see if they belong to a certain group. The group field would be as follows:
group_id = 1,2,4,7
In the interest of server memory, I do not want to pull the entire table and search with CF (listfind). Instead, I would like to run an SQL query like this:
Select *
FROM table
where group_id CONTAINS '2'
Of course I can't do this. I'm a liitle rusty on my SQL. Could someone help??
Thanks
I am trying to search a huge table of users to see if they belong to a certain group. The group field would be as follows:
group_id = 1,2,4,7
In the interest of server memory, I do not want to pull the entire table and search with CF (listfind). Instead, I would like to run an SQL query like this:
Select *
FROM table
where group_id CONTAINS '2'
Of course I can't do this. I'm a liitle rusty on my SQL. Could someone help??
Thanks