Hi,

I am trying something which may not be allowed.

<cfset test = "where (City LIKE '#city#'
        or State LIKE '#state#'
        or Availability >= '#SquareFeet#')">

<CFQUERY NAME="search" Datasource="sqft">
        Select * from property
        #test#
</CFQUERY>

I am getting a 37000 syntax error.  I have tried this with and without the 
single quotes and it gets the same error.

I find conditionals in the sql (as shown in both cold fusion books: Danesh 
and Forta) to be very difficult to maintain as well as read.

thanks in advance

------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to