Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save trycf/173d64a4e178400bca478b3529084faf to your computer and use it in GitHub Desktop.

Select an option

Save trycf/173d64a4e178400bca478b3529084faf to your computer and use it in GitHub Desktop.
TryCF Gist
<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