21.01.2013 Views

QlikView Reference Manual.pdf - QlikCommunity - QlikView

QlikView Reference Manual.pdf - QlikCommunity - QlikView

QlikView Reference Manual.pdf - QlikCommunity - QlikView

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

SQLColumns<br />

The sqlcolumns statement returns a set of fields describing the columns of an ODBC data source, to which a<br />

connect has been made. These fields can be combined with the fields generated by the SQLTables (page<br />

265) and SQLTypes (page 266) commands in order to give a good overview of a given database. The twelve<br />

standard fields are:<br />

TABLE_QUALIFIER<br />

TABLE_OWNER<br />

TABLE_NAME<br />

COLUMN_NAME<br />

DATA_TYPE<br />

TYPE_NAME<br />

PRECISION<br />

LENGTH<br />

SCALE<br />

RADIX<br />

NULLABLE<br />

REMARKS<br />

For a detailed description of these fields, see an ODBC reference handbook.<br />

The syntax is:<br />

sqlcolumns<br />

Example:<br />

connect to 'MS Access 7.0 Database; DBQ=C:\Course3\DataSrc\QWT.mbd';<br />

sqlcolumns;<br />

Note!<br />

Some ODBC drivers may not support this command.<br />

Some ODBC drivers may produce additional fields.<br />

Back to Script Statements and Keywords (page 219).<br />

SQLTables<br />

The sqltables statement returns a set of fields describing the tables of an ODBC data source, to which a connect<br />

has been made. These fields can be combined with the fields generated by the SQLColumns (page 265)<br />

and SQLTypes (page 266) commands in order to give a good overview of a given database. The five standard<br />

fields are:<br />

TABLE_QUALIFIER<br />

TABLE_OWNER<br />

TABLE_NAME<br />

TABLE_TYPE<br />

REMARKS<br />

For a detailed description of these fields, see an ODBC reference handbook.<br />

The syntax is:<br />

sqltables<br />

Example:<br />

265

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

Saved successfully!

Ooh no, something went wrong!