Created
January 4, 2022 21:29
-
-
Save trycf/08ee4cd494caee1f9ef165c77db9bcc4 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> | |
employees = queryNew( 'name,age,email', 'varchar,integer,varchar', | |
[ | |
[ 'John Doe',28,'John@company.com' ], | |
[ 'Jane Doe',22,'Jane@company.com' ], | |
[ 'Bane Doe',28,'Bane@company.com' ] | |
] ); | |
actual = QueryExecute( | |
sql = "SELECT DISTINCT name, age, name from employees order by name, age", | |
options = { dbtype: 'query' } | |
); | |
dump( actual ) | |
</cfscript> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment