ODBC Function
|
Returns...
|
---|---|
SQLDescribeCol
|
Decimal digits of the columns it describes.
|
SQLDescribeParam
|
Decimal digits of the parameters it describes.
|
SQLProcedureColumns
|
Decimal digits in a column of a procedure.
|
SQLColumns
|
Decimal digits in specified tables (such as the base table, view, or a system table).
|
SQLColAttribute
|
Decimal digits of columns at the data source.
|
SQLGetTypeInfo
|
Minimum and maximum decimal digits of an SQL data type on a data source.
|
SQL Type Identifier
|
Decimal Digits
|
---|---|
All character and binary types [a]
|
N/A
|
SQL_DECIMAL SQL_NUMERIC
|
The defined number of digits to the right of the decimal point. For example, the scale of a column defined as NUMERIC(10,3) is 3. (In some implementations, this can be a negative number to support storage of very large numbers without using exponential notation; for example, "12000" could be stored as "12" with a scale of -3. However, solidDB® does not support negative scale.)
|
All exact numeric types other than SQL_DECIMAL and SQL_NUMERIC [a]
|
0
|
All approximate data types [a]
|
N/A
|
[a] SQLBindParameter's DecimalDigits argument is ignored for this data type.
|
SQL Type Identifier
|
Descriptor field corresponding to decimal digits
|
---|---|
All character and binary types
|
N/A
|
All exact numeric types
|
SCALE
|
All approximate numeric types
|
N/A
|
All datetime types
|
PRECISION
|