Product Documentation

FairCom Java & .NET Stored Procedures

Previous Topic

Next Topic

SQLPStatement.execute

Executes the FairCom DB SQL statement. This method is common to the SQLIStatement and SQLPStatement classes.

Format

public void execute()

Returns

None

Parameters

None

Throws

DhSQLException

Example


CREATE PROCEDURE test_pstmt()

BEGIN

SQLPStatement pstmt = new SQLPStatement ( "INSERT INTO T1 VALUES (?, ?) ") ;

pstmt.setParam (1, new Integer(10));

pstmt.setParam (2, new Integer(10));

pstmt.execute ();

pstmt.setParam (1, new Integer(20));

pstmt.setParam (2, new Integer(20));

pstmt.execute ();

END

TOCIndex