Created
January 29, 2026 07:57
-
-
Save trycf/a9042e9da0e4e612e256e47439ae890e 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> | |
| writeOutput("The server is:"); | |
| writeDump(server.coldfusion); | |
| //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