Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save trycf/b2d793fdb339ac99baa9d11edbfed20a to your computer and use it in GitHub Desktop.
Save trycf/b2d793fdb339ac99baa9d11edbfed20a to your computer and use it in GitHub Desktop.
TryCF Gist
<cfset q = queryNew(
"id,name,amount",
"Integer,Varchar,Integer",
[
{id=1, name="One", amount=15},
{id=2, name="Two", amount=18},
{id=3, name="Three", amount=32}
]
)>
<cfdump var="#q#">
<cfset arr = []>
<cfloop query="q">
<cfset ArrayAppend(arr, q)>
</cfloop>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment