Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
DettCom #1
Dynamic SQL Query
Hello All, My life long persuit of true dynamic queries continues, and as
usual, I hit another snag. I am try to create a dynamic search page where the
admin would create the fields or dropdowns for the user to select. For this
example, we'll say a dropdown for month (01, 02, 03, etc.) and year (2001,
2002, 2003, etc.). now on the next page I want the admin to be able to enter
information into four separate textarea boxes. They are QUERY OR SPOC, WHERE
STATEMENT, GROUP BY STATEMENT and ORDER BY STATEMENT. This is what I would
like for them to be able to enter: QUERY OR SPOC: Select var1, var2, FROM
TABLE222 WHERE STATEMENT: where month = #form.month# AND year = #form.year#
GROUP BY: VAR1, VAR2 The problem occurs in the where statement. I have tried
Evaluate(), using single quotes, double quotes etc. Does anyone have any
ideas??? Thanks!!!!
DettCom Guest
-
Problem with Dynamic Update Query
I am having a problem with a dynamic query I create a string which will be inserted into the Query tag <cfQuery> Update Table Set #MyVar#... -
Dynamic Query
I have this query and would like it to display different results. I have to display records for either today, yesterday, this week, last week, last... -
Dynamic Query Problem
I am using CF 5 and would like to create a dynamic query on a table based on 4 form variables. For example, if only two out of the 4 form... -
ORA-00923 - Dynamic query in Oracle
Hello all, I am developing an app that can work off both MS-SQL and Oracle databases. The problem has surfaced where I am now testing in Oracle... -
Dynamic Query Filter
I have a query which returns a very long list of my members, and would like to create a select box at the top of the page that allows the user to... -
DettCom #2
Re: Dynamic SQL Query
I forgot to mention that when the form posts, it uses where month = #form.month# AND year = #form.year# instead of plugging in the month and year value.
Thanks
DettCom Guest



Reply With Quote

