Created
April 5, 2019 12:56
-
-
Save trycf/bb1a200d185f92d2f463cfa4ca8e8889 to your computer and use it in GitHub Desktop.
TryCF Gist
This file contains 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> | |
users = queryNew( | |
"id, firstname", "integer, varchar", | |
[ | |
{ "id":1, "firstname": "Han" }, | |
{ "id":2, "firstname": "Chewie" } | |
] | |
); | |
subUsers = queryExecute( | |
"select * from users order by firstname", | |
{}, | |
{ dbtype="query", returntype="struct", columnkey="id" } | |
); | |
dump( subUsers ); | |
dump( subUsers.getClass() ); | |
</cfscript> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment