<cfquery name="myquery">
SELECT *
FROM atty
WHERE atty_id IN (<cfqueryparam value="#pa_list#"
cfsqltype="CF_SQL_CHAR" list="Yes">)
</cfquery>
-----Original Message-----
From: Les Mizzell [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 25 January 2005 11:08 a.m.
To: CF-Talk
Subject: Query"Where in List" with UUID Problem
Doing this:
<cfset pa_list = ValueList(palist.atty_id)>
<cfquery name="myquery">
SELECT * FROM atty
WHERE atty_id IN (#pa_list#)
</cfquery>
Originally, the pa_list was just numbers - 11,148,83,23
The query worked fine at that point.
However, a decision was made to use #CreateUUID()# to create the ID's,
so the pa_list NOW looks like:
1203,560,110,A6059FCB-BCD2-35D3-DD69BDA7A81553CF,A6081455-BCD2-35D3-DD69BDA7
A81553CF
Which is creating an error.
Not sure what my syntax problem is at the moment. Haven't had enough
coffee yet today.
Thanks,
--
-----------
Les Mizzell
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware: a new and convenient web-based time tracking application. Start
tracking and documenting hours spent on a project or with a client with Logware
today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:191597
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54