CODBCStmt.ColAutoUniqueValuemethod
Checks if the column is an autoincrementing column or not.
Syntax
FUNCTION ColAutoUniqueValue (BYVAL ColNum AS SQLUSMALLINT) AS BOOLEAN
Parameters
| Name | Description | |
|---|---|---|
ColNum | Column number. |
Return value
TRUE or FALSE.
Result code (GetLastResult)
SQL_SUCCESS, SQL_SUCCESS_WITH_INFO, SQL_STILL_EXECUTING, SQL_ERROR, or SQL_INVALID_HANDLE.
Description
Returns SQL_TRUE if the column is an autoincrementing column, SQL_FALSE if the column is not an autoincrementing column or is not numeric. This field is valid for numeric data type columns only. An application can insert values into a row containing an autoincrement number, but typically cannot update values in the column. When an insert is made into an autoincrement column, a unique value is inserted into the column at insert time. The increment is not defined, but is data source-specific. An application should not assume that an autoincrement column starts at any particular point or increments by any particular value.
Reference
- Include file
CODBCStmt.inc - Defined in AfxNova/COdbcStmt.inc:825
- Documented in Databases/ODBC Classes/CODBCStmt Class.md
- Topic: CODBCStmt Class