UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software UniBasic Commands Reference - Rocket Software

rocketsoftware.com
from rocketsoftware.com More from this publisher
11.04.2013 Views

SQLColumns Syntax status = SQLColumns (statement.env, schema, owner, tablename, columnname ) Note: This function is case-sensitive. If you want it to be case-insensitive, you must compile your programs using the BASIC command with the -i option. Description This function returns a result set in statement.env as a cursor of 12 columns describing those columns found by the search pattern (see SQLTables). As with SQLTables, the search is done on the SQL catalog. This is a standard result set that can be accessed with SQLFetch. The ability to obtain descriptions of columns does not imply that a user has any privileges on those columns. Parameters The following table describes each parameter of the syntax. 1-798 UniBasic Commands Reference Parameter Description statement.env SQL statement environment. schema Schema name search pattern. owner Table owner number search pattern. tablename Table name search pattern. columnname Column name search pattern. SQLColumns Input Variables

Result Set The result set contains 12 columns: Column Name Data Type TABLE.SCHEMA VARCHAR(128) OWNER INTEGER TABLE.NAME VARCHAR(128) COLUMN.NAME VARCHAR(128) DATA.TYPE SMALLINT TYPE.NAME VARCHAR(128) NUMERIC.PRECISION INTEGER CHAR.MAX.LENGTH INTEGER NUMERIC.SCALE SMALLINT NUMERIC.PREC.RADIX SMALLINT NULLABLE SMALLINT REMARKS VARCHAR(254) SQLColumns Result Set The application is responsible for binding variables for the output columns and fetching the results using SQLFetch. SQLColumns 1-799

Result Set<br />

The result set contains 12 columns:<br />

Column Name Data Type<br />

TABLE.SCHEMA VARCHAR(128)<br />

OWNER INTEGER<br />

TABLE.NAME VARCHAR(128)<br />

COLUMN.NAME VARCHAR(128)<br />

DATA.TYPE SMALLINT<br />

TYPE.NAME VARCHAR(128)<br />

NUMERIC.PRECISION INTEGER<br />

CHAR.MAX.LENGTH INTEGER<br />

NUMERIC.SCALE SMALLINT<br />

NUMERIC.PREC.RADIX SMALLINT<br />

NULLABLE SMALLINT<br />

REMARKS VARCHAR(254)<br />

SQLColumns Result Set<br />

The application is responsible for binding variables for the output columns and<br />

fetching the results using SQLFetch.<br />

SQLColumns 1-799

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

Saved successfully!

Ooh no, something went wrong!