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.

Parameters<br />

The following table describes each parameter of the syntax.<br />

Input Variable Description<br />

1-790 <strong>UniBasic</strong> <strong>Commands</strong> <strong>Reference</strong><br />

statement.env SQL statement environment associated with an SQL statement.<br />

mrk# Number of the parameter marker in the SQL statement to which this<br />

call refers. Parameter markers in the SQL statement are numbered left<br />

to right, starting at 1.<br />

data.type <strong>UniBasic</strong> data type to bind to the parameter. data.type must be one of<br />

the following:<br />

SQL.B.BASI – Use with any sql.type.<br />

SQL.B.BINARY – Use only when sql.type is SQL.BINARY,<br />

SQL.VARBINARY, or SQL.LONGVARBINARY.<br />

SQL.B.INTDATE – Use only when sql.type is SQL.DATE.<br />

SQL.B.INTTIME – Use only when sql.type is SQL.TIME.<br />

sql.type SQL data type to which the <strong>UniBasic</strong> variable is converted.<br />

prec Precision of the parameter, representing the width of the parameter. If<br />

prec is 0, default values are used.<br />

scale Scale of the parameter, used only when sql.type is SQL.DECIMAL or<br />

SQL.NUMERIC.<br />

param Variable that contains the data to use when SQLExecute or<br />

SQLExecDirect is called.<br />

param.type Type of parameter. param.type can be one of the following:<br />

SQL.PARAM.INPUT – Use for parameters in an SQL statement that<br />

does not call a procedure, or for input parameters in a procedure call.<br />

SQL.PARAM.OUTPUT – Use for parameters that mark the output<br />

parameter in a procedure.<br />

SQL.PARAM.INPUT.OUTPUT – Use for an input/output parameter<br />

in a procedure.<br />

If you do not specify param.type, SQL.PARAM.INPUT is used.<br />

SQLBindParameter Input Variables

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

Saved successfully!

Ooh no, something went wrong!