Created
September 13, 2019 13:06
-
-
Save trycf/a11f0ec7587133644d4368e93b310fc2 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
<cfdump var=#server.lucee.version#> | |
<cfloop list="numeric,integer" item="d"> | |
<cfoutput><h1>#D#</h1></cfoutput> | |
<cfscript> | |
a = queryNew("id","#d#"); | |
QueryAddRow(a); | |
QuerySetCell(a,"id",1); | |
QueryAddRow(a); | |
QuerySetCell(a,"id",2); | |
QueryAddRow(a); | |
QuerySetCell(a,"id",3); | |
b = duplicate(a); | |
dump(a); | |
dump(b); | |
</cfscript> | |
<cfdump var=#getMetaData(a)#> | |
<cfdump var=#getMetaData(b)#> | |
<cfquery name="q" dbtype="query"> | |
SELECT a.ID, b.id | |
FROM a, | |
b | |
where b.ID=a.ID | |
and b.ID IN (2) | |
</cfquery> | |
<h1>join result</h1> | |
<cfdump var=#q#> | |
<hr> | |
</cfloop> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment