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 - M-Business Anywhere 编程 » UltraLite for M-Business Anywhere API 参考 » Connection 类

 

prepareStatement 方法

将一个带有或不带有 IN 参数的 SQL 语句预编译并存储到一个 PreparedStatement 对象中。

语法
PreparedStatement prepareStatement(String sql, String persistName)
参数
  • sql   可能包含一个或多个 '?' 的 SQL 语句IN 参数占位符。

  • persistName   用于跨页 JavaScript 对象持久性的名称。如果不需要持久性(如,在应用程序只有单一 HTML 页面的情况下),则设置为空。

注释

此对象可用于多次有效地执行 SQL 语句。