I am not sure what you are doing with the results. But if you are using the values in a SQL statement, consider using cfqueryparam with the "list" attribute instead. Then no quotes are needed.
(Untested)
Code:
<cfquery...>
SELECT Columns, ....
FROM SomeTable
WHERE SomeColumn IN
(
<cfqueryparam
value="SOH01123,SOH01146,SOH01141,SOH01185"
cfsqltype="cf_sql_varchar"
list="true" >
)
</cfquery>
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.