11.04.2013 Views

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

SQLTables<br />

Syntax<br />

status = SQLTables (statement.env, schema, owner, tablename, type)<br />

Note: This function is case-sensitive. If you want it to be case-insensitive, you<br />

must compile your programs using the BASIC command with the -i option.<br />

Description<br />

SQLTables returns a result set listing the tables matching the search patterns. Use this<br />

function only when you are connected to an ODBC data source.<br />

This function returns statement.env as a standard result set of five columns containing<br />

the schemas, owners, names, types, and remarks for all tables found by the search.<br />

The search criteria arguments can contain a literal, an SQL LIKE pattern, or be<br />

empty. If a literal or LIKE pattern is specified, only values matching the pattern are<br />

returned. If a criterion is empty, tables with any value for that attribute are returned.<br />

owner cannot specify a LIKE pattern.<br />

Parameters<br />

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

Parameter Description<br />

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

statement.env SQL statement environment.<br />

schema Schema name search pattern.<br />

owner Table owner number search pattern.<br />

tablename Table name search pattern.<br />

type Table type (one of the following: BASE TABLE, VIEW,<br />

ASSOCIATION, or TABLE) search pattern.<br />

SQLTables Parameters

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

Saved successfully!

Ooh no, something went wrong!