Quantcast
Channel: Adobe Community : Discussion List - ColdFusion
Viewing all articles
Browse latest Browse all 6243

ColdFusion ORM

$
0
0

I have query which should filter the where clause condition depends on the URL parameter to the page?

 

 

With CFQuery:

 

<cfquery name="GetUser" datasource="Sample">

    Select *from Users

    where <cfif url.type EQ 1>userid=123<cfelse>userid=456</cfif>

</cfquery>

 

the same query i am tryinng to write with ORMExecuteQuery, i am failing to write it.

 

Please help me on this.

 

Thanks in advance


Viewing all articles
Browse latest Browse all 6243

Trending Articles