SQLColumns

This function returns a list of columns in the specified tables with their attributes.

Syntax :

RETCODE SQLColumns (hstmt, catalogName, lenCatalogName, schemaName, lenschemaname, tableName, lenTableName, columnName, lencolumnName);

Arguments :

The arguments for SQLColumns are listed in below table.

TypeNameDescription
SQLHSTMThstmtStatement handle
SQLCHAR*catalogNameBuffer that might contain a pattern-value to qualify the result set. Catalog is the first part of a three-part table name.This must be a NULL pointer or a zero length string.
SQLSMALLINTLenCatalogNameLength of catalogName. This must be set to 0.
SQLCHAR*SchemaNameBuffer that might contain a pattern-value to qualify the result set by schema name.
SQLSMALLINTlenschemanameLength of SchemaName
SQLCHAR*tableNameBuffer that might contain a pattern-value to qualify the result set by table name.
SQLSMALLINTLenTableNameLength of tableName
SQLCHAR*columnNameBuffer that might contain a pattern-value to qualify the result set by column name.
SQLSMALLINTlencolumnNameLength of columnName
Page last modified on September 26, 2009, at 01:52 AM