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_TableSchema_iface 类

 

GetColumnDefault 函数

获取列的缺省值(如果存在)。

语法
ULValue UltraLite_TableSchema_iface::GetColumnDefault(
  const ULValue & column_id
)
参数
  • column_id   列的 ID 号。该值必须是从 1 开始的序号。表中第一列的 ID 值为 1。

返回值
  • 包含的缺省值为字符串形式。

  • 如果列不包含缺省值,则返回结果为空。

注释

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