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.

ODBC Data Sources<br />

If you execute a stored procedure or enter a command batch with multiple SELECT<br />

statements, the results of only the first SELECT statement are returned.<br />

Parameters<br />

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

Parameter Description<br />

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

statement.env SQL statement environment from a previous SQLAllocStmt.<br />

statement Either an SQL statement or a call to an SQL procedure, to be executed at<br />

the data source.<br />

To call an SQL procedure, use the following syntax:<br />

[ { ] CALL procedure [ ( [ parameter [ , parameter ] … ] ) ] [ } ]<br />

procedure Name of the procedure. If the procedure name contains characters other<br />

than alphabetic or numeric, enclose the name in double quotation marks.<br />

To embed a single double quotation mark in the procedure name, use two<br />

consecutive double quotation marks.<br />

parameter Either a literal value or a parameter marker that marks where to insert<br />

values to send to or receive from the data source. Programmatic SQL<br />

uses a ? (question mark) as a parameter marker.<br />

Use parameters only if the procedure is a subroutine. The number and<br />

order of parameters must correspond to the subroutine arguments. For an<br />

ODBC data source, parameters should be of the same data type as the<br />

procedure requires.<br />

SQLPrepare Parameters

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

Saved successfully!

Ooh no, something went wrong!