Try

SELECT *
FROM   Tbl
WHERE  0 = 1
<CFIF parameterexists(id)>
OR     id   = #id#
</CFIF>
<CFIF parameterexists(name)>
OR     name = #name#
</CFIF>

> is this correct or am i missing something?
> 
> select *
> from tbl
> where <cfif isdefined(")>
> id = #id#
> </cfif>
> or
> <cfif isdefined(")>
> name = #name#
> </cfif>


------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
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