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 参考 » 嵌入式 SQL API 参考

 

ULGetLastDownloadTime 函数

获得上次下载指定发布的时间。

语法
ul_bool ULGetLastDownloadTime (
SQLCA * sqlca,
ul_string pub-name,
DECL_DATETIME * value
);
参数

sqlca   指向 SQLCA 的指针。

pub-name   包含为其检索上次下载时间的发布名称的字符串。

value   指向要填充的 DECL_DATETIME 结构的指针。例如,值为 1990 年 1 月 1 日 说明仍必须同步该发布。

返回值
  • true   valuepub-name 指定的发布的上次下载时间成功填充。

  • false   pub-name 指定了多个发布,或者所指定的发布未定义。value 的内容没有意义。

示例

以下调用使用发布 UL_PUB_PUB1 的下载日期和时间填充 dt 结构:

DECL_DATETIME dt;
ret = ULGetLastDownloadTime( &sqlca, UL_TEXT("UL_PUB_PUB1"), &dt );
另请参见