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

Example

This code fragment illustrates the execute and setParam methods in the SQLPStatement class:
SQLPStatement pstmt = new SQLPStatement (
"INSERT INTO T1 VALUES (?, ?) ") ;
pstmt.setParam (1, 10);
pstmt.setParam (2, 10);
pstmt.execute ();
pstmt.setParam (1, 20);
pstmt.setParam (2, 20);
pstmt.execute ();