Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Perform SQL search in QueryObject

New Here ,
May 04, 2012 May 04, 2012

Hi,

I've parsed a very complicated XML into several QueryObjects - more or less got now 3 "tables".

Now i would like to use these three tables and perform a SQL search. something like

Select * From tblMenu Where menu_dayId = 2

I have searched and also tried to find a way in the Coldfusionreference, but was not lucky.

Does anyone got a solution how i can achieve this goal?

greets

369
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

New Here , May 10, 2012 May 10, 2012

Found an answer: You just have to ask the correct question. QoQ = Query of Queries

<cfset tblMenu = QueryNew("menuId, menu_dayId, menuDesc") />

...

<cfquery dbtype="query" name="tblToday">

            select * from tblMenu

            where menu_dayId = #curWorkDay#

</cfquery>

Translate
New Here ,
May 10, 2012 May 10, 2012
LATEST

Found an answer: You just have to ask the correct question. QoQ = Query of Queries

<cfset tblMenu = QueryNew("menuId, menu_dayId, menuDesc") />

...

<cfquery dbtype="query" name="tblToday">

            select * from tblMenu

            where menu_dayId = #curWorkDay#

</cfquery>

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources