Created
February 3, 2026 21:47
-
-
Save trycf/3a807ab785234bbf5dbe73a1906a82ae 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