Skip to content

Instantly share code, notes, and snippets.

@adamcameron
Created April 12, 2023 14:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adamcameron/cc826e0ee5c659eee075f317cdd989d1 to your computer and use it in GitHub Desktop.
Save adamcameron/cc826e0ee5c659eee075f317cdd989d1 to your computer and use it in GitHub Desktop.
Query using tag islands for param
<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