List to quoted SQL IN list

<cfset list = "one,two,three">
original=<cfoutput>#list#</cfoutput><br>
<cfset quotedList = "'#replace(list,",","','","all")#'">
sql in list=<cfoutput>#quotedList#</cfoutput>
Note the single quotes before and after the # characters.
Source: bennadel.com

Comments (Comment Moderation is enabled. Your comment will not appear until approved.)
BlogCFC was created by Raymond Camden. This blog is running version 5.9.001. Contact Blog Owner