File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -11092,11 +11092,11 @@ This will construct a SQL statement:
11092
11092
SELECT first_name, last_name FROM employees WHERE first_name IN (:0, :1, :2)
11093
11093
```
11094
11094
11095
- Binds are still used for security. But, depending how often this
11096
- query is executed, and how changeable the number of bind values is ,
11097
- you can end up with lots of 'unique' query strings being executed.
11098
- You might not get the statement caching benefits that re-executing a
11099
- fixed SQL statement would have.
11095
+ You could use a [tagged literal template][160] to do this conveniently. Binds
11096
+ are still used for security. But, depending how often this query is executed ,
11097
+ and how changeable the number of bind values is, you can end up with lots of
11098
+ 'unique' query strings being executed. You might not get the statement caching
11099
+ benefits that re-executing a fixed SQL statement would have.
11100
11100
11101
11101
Another solution for a larger number of values is to construct a SQL
11102
11102
statement like:
@@ -14190,3 +14190,4 @@ can be asked at [AskTom][158].
14190
14190
[157]: https://livesql.oracle.com/
14191
14191
[158]: https://asktom.oracle.com/
14192
14192
[159]: https://www.oracle.com/pls/topic/lookup?ctx=dblatest&id=GUID-1070805B-0703-457C-8D2E-4EEC26193E5F
14193
+ [160]: https://github.com/oracle/node-oracledb/issues/699#issuecomment-524009129
You can’t perform that action at this time.
0 commit comments