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 ODBC API 参考

 

SQLExecute 函数

在 UltraLite ODBC 中,此函数用于执行 SQL 预准备语句。

语法
UL_FN_SPEC SQLRETURN UL_FN_MOD SQLExecute (
SQLHSTMT StatementHandle );
参数
  • StatementHandle   要执行的语句的句柄。

注释

必须先用 SQL Prepare 准备语句,才能执行它。如果语句有参数标记,则必须在执行前使用 SQLBindParameter 将它们绑定到变量。

使用 SQLExecDirect,无需事先准备就可以执行语句。对于重复执行的语句,SQLExecDirect 的性能比 SQLExecute 低。

另请参见