Bosky, Dave wrote:
> Is it necessary to wrap the variable ProductsFound which is a list of ID
> numbers in single quotes?
> 
> <CFSET ProductsFound = QuotedValueList(qProducts.product_id)>
> <CFQUERY name="qRemoveProducts" datasource="dsn">
>        DELETE FROM tbl_products
>        WHERE product_id IN ('#ProductsFound#')
> </CFQUERY>

No. There is no need for quotedvaluelist either. There is just a need 
for cfqueryparam with the list attribute.

Jochem

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to