Release 10.1A: OpenEdge Data Management:
SQL Reference

> ## SQLPStatement.execute

> Executes the SQL statement. This method is common to the `SQLIStatement` and `SQLPStatement` classes.

> ##### Format

> `public void execute()`

> ##### Returns

> None

> ##### Parameters

> None

> ##### 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 ();

Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095