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

SQL Anywhere 12.0.0 (中文) » SQL Anywhere 服务器 - 编程 » 嵌入式 SQL » 示例嵌入式 SQL 程序

 

构建示例程序

用于构建示例程序的文件随示例代码提供。

  • 对于 Windows 系统,使用 build.batbuild64.bat 来编译示例程序。

    对于 x64 平台版本,您可能需要设置正确的编译和链接环境。以下示例构建了一个适用于 x64 平台的示例程序。

    set mssdk=c:\MSSDK\v6.1
    build64
  • 对于 Unix,使用 shell 脚本 build.sh

  • 对于 Windows Mobile,使用适用于 Microsoft Visual C++ 的 esql_sample.sln 项目文件。此文件位于 samples-dir\SQLAnywhere\CE\esql_sample 中。

这会构建以下示例。

  • CUR   一个嵌入式 SQL 静态游标示例。

  • DCUR   一个嵌入式 SQL 动态游标示例。

  • ODBC   一个 ODBC 示例,ODBC 示例中进行了介绍。