11.04.2013 Views

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

EDADRV_ExecuteStmt<br />

Syntax<br />

RETCODE EDADRV_ExecuteStmt(stmthdl,parameters,rowcount)<br />

Description<br />

EDA calls the EDADRV_ExecuteStmt function to execute an SQL statement that has<br />

been prepared with EDA_PrepareStmt.<br />

EDA provides parameter values for each input and input/output parameter. Parameter<br />

values are supplied in a string format, separated by field marks. The value of the field<br />

mark is determined by calling the EDADRV_GetADDAttr function. The<br />

EDADRV_ExecuteStmt function binds each parameter and executes a statement that<br />

has already been prepared with the EDADRV_PrepareStmt function. If the statement<br />

is INSERT, UPDATE, or DELETE (statement type EDASTMT_DML), the output<br />

variable rowcount contains the number of rows affected by the operation. If the<br />

statement is a query (statement type EDASTMT_QUERY), rowcount contains the<br />

number of columns of the result set. If the statement is a stored procedure (statement<br />

type EDASTMT_PROCEDURE), rowcount is not set.<br />

Input Variables<br />

The following table describes the input variables.<br />

Type Argument Description<br />

EDA_T_STMT_HDL stmthdl The statement handle.<br />

EDA_T_STRING parameters The statement parameters.<br />

EDADRV_ExecuteStmt Input Variables<br />

EDADRV_ExecuteStmt 1-229

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!