Use prepared statements
You can use a prepared statement for repeated execution of the same query with different query parameters. A prepared statement contains parameter placeholders whose values are supplied at execution time.
Note
The maximum number of prepared statements in a workgroup is 1000.