![]() | Products |
| Home » Technical Support » ElevateDB Technical Support » Product Manuals » ElevateDB Version 2 SQL Manual » SQL/PSM Statements » EXECUTE |
EXECUTE <StatementName> [USING <Value> [,<Value>]]
-- This procedure creates 100,000 test
-- rows in the Customers table using a
-- parameterized INSERT statement
CREATE PROCEDURE PopulateCustomers()
BEGIN
DECLARE stmt STATEMENT;
DECLARE I INTEGER DEFAULT 1;
PREPARE stmt FROM 'INSERT INTO Customers
(CustNo, Name)
VALUES (?, ?)';
WHILE I <= 10000 DO
EXECUTE stmt USING I, 'Test Customer #' + CAST(I AS VARCHAR(10));
SET I = I + 1;
END WHILE;
UNPREPARE stmt;
END| Deviation | Details |
| Dynamic SQL | The use of dynamic SQL for DDL, DML, and administrative statement execution instead of static SQL in procedures and functions is both an ElevateDB extension and a deviation from the standard. |
This web page was last updated on Tuesday, September 16, 2025 at 04:56 PM | Privacy Policy © 2025 Elevate Software, Inc. All Rights Reserved Questions or comments ? |

