Synopsis
Description
Executes a prepared statement with the namestatement_name. Parameter values
are defined in the USING clause.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
EXECUTE statement_name [ USING parameter1 [ , parameter2, ... ] ]
statement_name. Parameter values
are defined in the USING clause.
PREPARE my_select1 FROM
SELECT name FROM nation;
EXECUTE my_select1;
PREPARE my_select2 FROM
SELECT name FROM nation WHERE regionkey = ? and nationkey < ?;
EXECUTE my_select2 USING 1, 3;
SELECT name FROM nation WHERE regionkey = 1 AND nationkey < 3;
Was this page helpful?