Created
April 12, 2023 14:34
-
-
Save adamcameron/cc826e0ee5c659eee075f317cdd989d1 to your computer and use it in GitHub Desktop.
Query using tag islands for param
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> | |
query name="getData" { | |
``` | |
<cfsavecontent variable="sql"> | |
SELECT * FROM test WHERE id = | |
</cfsavecontent> | |
``` | |
writeOutput(sql) | |
``` | |
<cfqueryparam cfsqltype="CF_SQL_INTEGER" value="101"> | |
``` | |
} | |
```<cfdump var="#getData#">``` | |
</cfscript> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment