Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 (中文) » UltraLite - C 及 C++ 编程 » API 参考 » UltraLite C++ API 参考 » UltraLite_RowSchema_iface 类

 

GetColumnPrecision 函数

获取数字列的精度。

语法
size_t UltraLite_RowSchema_iface::GetColumnPrecision(
  const ULValue & column_id
)
参数
  • column_id   从 1 开始的序号。

返回值

如果列不是数字类型,或者如果列不存在,则返回 0。

注释

如果列名不存在,则设置 SQLE_COLUMN_NOT_FOUND。

如果列类型不是数字列,则设置 SQLE_DATATYPE_NOT_ALLOWED。