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.
- conditional where statement Dan Donnick
- Re: conditional where statement Dave Hannum
- RE: conditional where statement Christopher Olive, CIO
- Re: conditional where statement Deanna L. Schneider
- RE: conditional where statement Larry Juncker
- Re: conditional where statement Ryan
- RE: conditional where statement Sean Daniels
- RE: conditional where statement Hayes, David
- RE: conditional where statement Won Lee
- RE: conditional where statement James Smith
- RE: conditional where statement mherbene
- RE: conditional where statement Braver, Ben:
- RE: conditional where statement Ed Toon
- RE: conditional where statement Richard Moger

