I am trying to perform a select statement:
SELECT group_id
FROM ACCOUNT_GROUPS
WHERE account_id = '1'
AND admin_user = '0'
AND active = '1'
AND uname IN (<cfqueryparam value="#send_to_var#" cfsqltype="cf_sql_varchar" list="yes" />)
AND uname != ''
If uname is a single var like abc1 it works fine. But now we need to search more....
So uname now has a potential list like "abc1,abc2,abc3,abc4"
AND now #send_to_var# could also contain more than one var like "abc3,efd6,asc9"
So I've tried CONTAINS and other SQL techniques but keep running into issues.
Can anyone provide any suggestions?