EXECUTE stmt_name
[USING expression[, expression] ...]
After preparing a statement with PREPARE, you execute it with anEXECUTE
statement that refers to the prepared statement name. If the prepared statement contains any parameter markers, you must supply aUSING
clause that lists user variables containing the values to be bound to the parameters. Parameter values can be supplied only by user variables, and the USING
clause must name exactly as many variables as the number of parameter markers in the statement.
You can execute a given prepared statement multiple times, passing different variables to it or setting the variables to different values before each execution.
If the specified statement has not been PREPAREd, an error similar to the following is produced:
ERROR 1243 (HY000): Unknown prepared statement handler (stmt_name) given to EXECUTE
EXECUTE
with expression as parameters can be used, not just variables (@var_name) as parameters.
You can only use variables (@var_name) as parameters.
See example in PREPARE.
This page is licensed: GPLv2, originally from fill_help_tables.sql
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4