statement
EXECUTE
Runs a previously prepared PostgreSQL statement with supplied parameter values in the same session. Example target: PostgreSQL 17. Use only the isolated starter dataset; setup and expected results are in the batch evidence.
Formal Syntax & Structure
sql syntaxsql
EXECUTE name(value)Working Example
Example Snippetsql
PREPARE lab_lookup(integer) AS SELECT name FROM customers WHERE id=$1;EXECUTE lab_lookup(1);