oi Won!!
it's probably not working because each item in the list is not single quoted..
<cfset attributes.myList = "'John','Amy'"> that would work, no?
--
------------------------------------
Tuesday, October 7, 2003, 11:05:32 AM, you wrote:
WL> Hello,
WL> Let's say I have a list:
WL> <cfset attributes.myList = "John, Amy">
WL> How can I do a query that would take that list and do a not in?
WL> <cfquery name="blah" ...>
WL> select PKID
WL> from myTable
WL> where name not in ('#attributes.myList#')
WL> </cfquery>
WL> (This codes doesn't work)
WL> CF 5.0
WL>
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
- cfquery + list Won Lee
- RE: cfquery + list Tony Weeg
- Re: cfquery + list Massimo Foti
- Re: cfquery + list Bryan Stevenson
- RE: cfquery + list Mike Townend
- Re: cfquery + list Critz
- Re: cfquery + list Ubqtous
- RE: cfquery + list Won Lee
- RE: cfquery + list Tony Weeg
- RE: cfquery + list Won Lee
- RE: cfquery + list Won Lee
- RE: cfquery + list Tony Weeg