select *
from tbl
where 1=2

<cfif isdefined(")>
    OR id = #id#
</cfif>

<cfif isdefined(")>
    OR name = #name#
</cfif>



Dan Donnick <[EMAIL PROTECTED]> wrote:
is this correct or am i missing something?

select *
from tbl
where <cfif isdefined(")>
        id = #id#
        </cfif>
        or
        <cfif isdefined(")>
        name = #name#
        </cfif>
______________________________

Dan Donnick
Cold Fusion Developer
Bixler Incorporated
1250 24th Street
Suite 250
Washington, DC 20037
P: (202) 686-5800
F: (202) 686-5801
______________________________

------------------------------------------------------------------------------
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.


____________________________________________________________________
Get free email and a permanent address at http://www.netaddress.com/?N=1
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebarRsts&bodyRsts/cf_talk or send a message 
to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to