UniBasic Commands Reference - Rocket Software
UniBasic Commands Reference - Rocket Software UniBasic Commands Reference - Rocket Software
SQLSetParam SQLSetParam is a synonym for SQLBindParameter. 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. 1-850 UniBasic Commands Reference
SQLSpecialColumns Syntax status = SQLSpecialColumns (statement.env, col.type, schema, owner, tablename, IDscope, null) 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 SQLSpecialColumns gets information about columns in a table. SQLSpecialColumns lets applications scroll forward and backward in a result set to get the most recent data from a set of rows. Columns returned for column type SQL.BEST.ROWID are guaranteed not to change while positioned on that row. Columns of the row ID can remain valid even when the cursor is not positioned on the row. The application can determine this by checking the SCOPE column in the result set. Once the application gets values for SQL.BEST.ROWID, it can use these values to reselect that row within the defined scope. The SELECT statement is guaranteed to return either no rows or one row. Columns returned for SQL.BEST.ROWID can always be used in an SQL select expression or WHERE clause. However, SQLColumns does not necessarily return these columns. If no columns uniquely identify each row in the table, SQLSpecial- Columns returns a row set with no rows; a subsequent call to SQLFetch returns SQL.NO.DATA.FOUND. Columns returned for column type SQL.ROWVER let applications check if any columns in a given row have been updated while the row was reselected using the row ID. If col.type, IDscope, or null specifies characteristics not supported by the data source, SQLSpecialColumns returns a result set with no rows, and a subsequent call to SQLFetch returns SQL.NO.DATA.FOUND. SQLSpecialColumns 1-851
- 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 =
- Page 890 and 891: Return Values The following table d
- Page 894 and 895: For complete details about the SQLS
- Page 896 and 897: 1-854 UniBasic Commands Reference C
- Page 898 and 899: Parameter Description tablename Nam
- Page 900 and 901: TYPE Smallint Not null 1-858 UniBas
- Page 902 and 903: SQLTables Syntax status = SQLTables
- Page 904 and 905: Return Values The following table d
- Page 906 and 907: Parameters The following table desc
- Page 908 and 909: SQRT Syntax SQRT(num.expr) Descript
- Page 910 and 911: SSUB Syntax SSUB(x, y) Description
- Page 912 and 913: STOP Syntax STOP [expr] Description
- Page 914 and 915: STR Syntax STR(str.expr, num.expr)
- Page 916 and 917: STRS Syntax STRS(dyn.array, expr) D
- Page 918 and 919: If the response status indicates th
- Page 920 and 921: SUBROUTINE Syntax SUBROUTINE sub.na
- Page 922 and 923: SUBROUTINE (Update Trigger) Syntax
- Page 924 and 925: Tip: The UniBasic STATUS function r
- Page 926 and 927: SUBROUTINE (Delete Trigger) Syntax
- Page 928 and 929: Tip: The UniBasic STATUS function r
- Page 930 and 931: Related Commands UniBasic DEL, INSE
- Page 932 and 933: Examples In the following example,
- Page 934 and 935: In the next example, SWAP does not
- Page 936 and 937: Parameter Description 1-894 UniBasi
- Page 938 and 939: Parameter Description 1-896 UniBasi
- Page 940 and 941: TAN Syntax TAN(num.expr) Descriptio
SQLSpecialColumns<br />
Syntax<br />
status = SQLSpecialColumns (statement.env, col.type, schema, owner, tablename,<br />
IDscope, null)<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 />
SQLSpecialColumns gets information about columns in a table.<br />
SQLSpecialColumns lets applications scroll forward and backward in a result set to<br />
get the most recent data from a set of rows. Columns returned for column type<br />
SQL.BEST.ROWID are guaranteed not to change while positioned on that row.<br />
Columns of the row ID can remain valid even when the cursor is not positioned on<br />
the row. The application can determine this by checking the SCOPE column in the<br />
result set.<br />
Once the application gets values for SQL.BEST.ROWID, it can use these values to<br />
reselect that row within the defined scope. The SELECT statement is guaranteed to<br />
return either no rows or one row.<br />
Columns returned for SQL.BEST.ROWID can always be used in an SQL select<br />
expression or WHERE clause. However, SQLColumns does not necessarily return<br />
these columns. If no columns uniquely identify each row in the table, SQLSpecial-<br />
Columns returns a row set with no rows; a subsequent call to SQLFetch returns<br />
SQL.NO.DATA.FOUND.<br />
Columns returned for column type SQL.ROWVER let applications check if any<br />
columns in a given row have been updated while the row was reselected using the<br />
row ID.<br />
If col.type, IDscope, or null specifies characteristics not supported by the data source,<br />
SQLSpecialColumns returns a result set with no rows, and a subsequent call to<br />
SQLFetch returns SQL.NO.DATA.FOUND.<br />
SQLSpecialColumns 1-851