Created
October 26, 2019 21:19
-
-
Save trycf/14a9f55a03f2c56de7a2c8ac5bee0f6a 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> | |
qry1 = queryNew( 'col1,col2', 'varchar,varchar' ); | |
qry2 = queryNew( 'col1,col2', 'varchar,varchar' ); | |
qry1.addRow( [ 'val1', 'val2' ] ) | |
qry2.addRow( [ 'val1', 'val2' ] ) | |
cfquery( dbtype="query" ,name="qry3" ) { | |
writeOutput( 'SELECT * FROM qry1 UNION SELECT * FROM qry2' ); | |
} | |
writedump( qry3 ); | |
</cfscript> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment