Try OpenEdge Now
skip to main content
SQL Reference
JDBC Reference : Java Class Reference : SQLIStatement : SQLIStatement.execute : Throws
 
Throws
DhSQLException

Example

This code fragment illustrates the setParam and execute methods:
CREATE PROCEDURE insert_customer (
IN cust_number INTEGER,
IN cust_name CHAR(20)
) BEGIN
SQLIStatement insert_cust = new SQLIStatement (
"INSERT INTO customer VALUES (?,?) ");
insert_cust.setParam (1, cust_number);
insert_cust.setParam (2, cust_name);
insert_cust.execute ();
END