UniBasic Commands Reference - Rocket Software
UniBasic Commands Reference - Rocket Software UniBasic Commands Reference - Rocket Software
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
- Page 790 and 791: Return Codes The return code indica
- Page 792 and 793: The following table describes each
- Page 794 and 795: SOAPGetDefault Syntax SOAPGetDefaul
- Page 796 and 797: SOAPGetFault Syntax SOAPGetFault(re
- Page 798 and 799: SOAPGetResponseHeader Syntax SOAPGe
- Page 800 and 801: SOAPRequestWrite Syntax SOAPRequest
- Page 802 and 803: SOAPSetDefault Syntax SOAPSetDefaul
- Page 804 and 805: Along with SOAPSetDefault, the Call
- Page 806 and 807: Return Codes The return code indica
- Page 808 and 809: Return Codes The return code indica
- Page 810 and 811: Return Codes The return code indica
- Page 812 and 813: You can also use the UniBasic STATU
- Page 814 and 815: Return Codes The return code indica
- Page 816 and 817: SOUNDEX Syntax SOUNDEX(expr) Descri
- Page 818 and 819: SPACE Syntax SPACE(expr) Descriptio
- Page 820 and 821: SPLICE Syntax SPLICE(expr1,"expr",
- Page 822 and 823: SQLAllocConnect Syntax status = SQL
- Page 824 and 825: SQLAllocEnv Syntax status = SQLAllo
- Page 826 and 827: SQLAllocStmt Syntax status = SQLAll
- Page 828 and 829: SQLBindCol Syntax status = SQLBindC
- Page 830 and 831: SQLBindParameter Syntax status = SQ
- Page 832 and 833: Parameters The following table desc
- Page 834 and 835: SQLCancel Syntax status = SQLCancel
- Page 836 and 837: SQLColAttributes Syntax status = SQ
- Page 838 and 839: 1-796 UniBasic Commands Reference C
- Page 842 and 843: Return Values The following table d
- Page 844 and 845: Parameter Description Return Values
- Page 846 and 847: Parameter Description Return Values
- Page 848 and 849: Return Values The following table d
- Page 850 and 851: ODBC Data Sources When a program is
- Page 852 and 853: SQLExecDirect Syntax status = SQLEx
- Page 854 and 855: Parameter Description Return Values
- Page 856 and 857: SQLExecute tells the data source to
- Page 858 and 859: Return Values The following table d
- Page 860 and 861: Return Values The following table d
- Page 862 and 863: Return Values The following table d
- Page 864 and 865: Parameters The following table desc
- Page 866 and 867: SQLGetInfo Syntax status = SQLGetIn
- Page 868 and 869: 1-826 UniBasic Commands Reference S
- Page 870 and 871: Return Values The following table l
- Page 872 and 873: Parameters The following table desc
- Page 874 and 875: 1-832 UniBasic Commands Reference C
- Page 876 and 877: SQLNumParams Syntax status = SQLNum
- Page 878 and 879: SQLNumResultCols Syntax status = SQ
- Page 880 and 881: SQLParamOptions Syntax status = SQL
- Page 882 and 883: Example This example shows how you
- Page 884 and 885: ODBC Data Sources If you execute a
- Page 886 and 887: SQLRowCount Syntax status = SQLRowC
- Page 888 and 889: SQLSetConnectOption Syntax status =
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