PREPARE¶
Synopsis¶
Description¶
Prepares a statement for execution at a later time. Prepared statements are queries that are saved in a session with a given name. The statement can include parameters in place of literals to be replaced at execution time. Parameters are represented by question marks.
Examples¶
Prepare a select query:
Prepare a select query that includes parameters. The values to compare with regionkey
and nationkey
will be filled in with the EXECUTE statement:
Prepare an insert query: