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

 

SQLExecDirect 函数

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

语法
UL_FN_SPEC SQLRETURN UL_FN_MOD SQLExecDirect (
SQLHSTMT StatementHandle,
SQLTCHAR * StatementText,
SQLINTEGER TextLength );
参数
  • StatementHandle   语句句柄。

  • StatementText   SQL 语句的文本。

  • TextLength   *StatementText 的长度。

注释

与 SQLExecute 不同,使用 SQLExecDirect 时,执行语句之前不需要准备语句。

对于重复执行的语句,SQLExecDirect 在执行速度上比 SQLExecute 慢。

另请参见