CODBCStmt.ColPrecisionmethod
A numeric value that for a numeric data type denotes the applicable precision.
Syntax
FUNCTION ColPrecision (BYVAL ColNum AS SQLUSMALLINT) AS SQLINTEGER
Parameters
| Name | Description | |
|---|---|---|
ColNum | Column number. |
Return value
The column applicable precision.
Result code (GetLastResult)
SQL_SUCCESS, SQL_SUCCESS_WITH_INFO, SQL_STILL_EXECUTING, SQL_ERROR, or SQL_INVALID_HANDLE.
Description
A numeric value that for a numeric data type denotes the applicable precision. For data types SQL_TYPE_TIME, SQL_TYPE_TIMESTAMP, and all the interval data types that represent a time interval, its value is the applicable precision of the fractional seconds component. This information is returned from the SQL_DESC_PRECISION record field of the IRD.
Reference
- Include file
CODBCStmt.inc - Defined in AfxNova/COdbcStmt.inc:1052
- Documented in Databases/ODBC Classes/CODBCStmt Class.md
- Topic: CODBCStmt Class