Created
January 29, 2026 08:08
-
-
Save trycf/173d64a4e178400bca478b3529084faf to your computer and use it in GitHub Desktop.
TryCF Gist
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <cfscript> | |
| //query | |
| myQuery = queryNew("id,name,amount,revenue","Integer,Varchar,Integer,Integer", | |
| [ | |
| {id=1,name="One",amount=15,revenue=35}, | |
| {id=2,name=JavaCast("null", ""),amount=18,revenue=41}, | |
| {id=3,name="Three",amount=32,revenue=73} | |
| ]); | |
| writeOutput("The new query is:"); | |
| writeDump(myQuery); | |
| </cfscript> | |
| <!--- QoQ ---> | |
| <cfquery name="newQoQ" dbtype="query"> | |
| select * | |
| from myQuery | |
| where name is null | |
| </cfquery> | |
| <cfoutput>The QoQ is:</cfoutput> | |
| <cfdump var="#newQoQ#"> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment