Help Center/ MapReduce Service/ Component Operation Guide (LTS)/ Using HetuEngine/ Common HetuEngine SQL Syntax/ HetuEngine Auxiliary Command Syntax/ EXECUTE
Updated on 2025-03-17 GMT+08:00
EXECUTE
Syntax
EXECUTE statement_name [ USING parameter1 [ , parameter2, ... ] ]
Description
This statement is used to run the prepared SQL statement and use USING to specify input parameters.
Example
- To run a precompiled statement without input parameters.
PREPARE my_select1 FROM SELECT name FROM fruit; EXECUTE my_select1;
- To run the SQL statement with two input parameters:
PREPARE my_select2 FROM SELECT name FROM fruit WHERE name= ? and price< ?; EXECUTE my_select2 USING 'peach',10; This is equivalent to: SELECT name FROM fruit WHERE name = 'peach' AND price<10;
Parent topic: HetuEngine Auxiliary Command Syntax
What is your overall rating for this page?
0
1
2
3
4
5
6
7
8
9
10
Very dissatisfiedVery satisfied
Thank you very much for your feedback. We will continue working to improve the documentation.
The system is busy. Please try again later.