• To do so, define a new PreparedStatement by writing the SELECT query as appropriate.

    为此,可以相应地编写SELECT查询定义新的PreparedStatement

    youdao

  • In this example, you first define the PreparedStatement as you did earlier in Listing 2.

    中,首先先前清单2中所做的一样定义PreparedStatement

    youdao

  • By using a PreparedStatement, you can dynamically modify your SQL statement at run time.

    通过使用PreparedStatement可以运行动态修改sql语句

    youdao

  • The following code snippets show the differences when using a Statement and a PreparedStatement.

    下面代码片段显示使用Statement使用PreparedStatement的不同之处。

    youdao

  • With the ij tool, you can accomplish this by using the REMOVE command to remove the PreparedStatement.

    通过ij工具可以使用REMOVE命令删除PreparedStatement 来完成此过程

    youdao

  • As shown in this example, you can also create a PreparedStatement to perform dynamic queries by using the ij tool.

    所示可以创建PreparedStatement使用ij工具执行动态查询

    youdao

  • In this article, you learned how to more effectively use PreparedStatement objects to support more advanced queries.

    本文中,了解了如何有效地使用PreparedStatement对象支持高级查询

    youdao

  • You may have noticed that Listing 6 never executes the PreparedStatement that you constructed for the SQL UPDATE command.

    可能已经注意清单6从未执行SQLUPDATE 命令构造PreparedStatement

    youdao

  • Finally, you learned about the ParameterMetaData object and how it can be used to obtain metadata about different PreparedStatement parameters.

    最后了解ParameterMetaData对象以及可以怎样用于获得各种PreparedStatement参数的元数据

    youdao

  • If you try to reuse this PreparedStatement after it's been removed, an error is generated because the internal resources are no longer available.

    如果尝试删除重用PreparedStatement,将生成错误因为内部资源不再可用

    youdao

  • This included using the ij tool to prepare, execute, and remove a PreparedStatement, which can be useful when you're prototyping different approaches.

    包括了使用ij工具准备执行删除PreparedStatement它们在构建不同方法原型十分有用

    youdao

  • Both statements can use the PreparedStatement syntax (see Resources) of "? "for a parameter, in which case the username will be set for every parameter.

    语句可以使用带“?”preparedstatement语法作为一个参数(请参见参考资料),这种情况下每个参数设置用户名。

    youdao

  • The variant with the PreparedStatement is more elegant regarding the coding, as no string arithmetic is required to put the values for STATE and TYPE in the SQL statement.

    使用 PreparedStatement 的那种代码片段编码方面更为优雅因为STATETYPE值置入SQL语句时需要进行字符串运算

    youdao

  • When you're done using a PreparedStatement object, you need to inform that database that the internal database resources allocated for the PreparedStatement can be released.

    使用PreparedStatement对象完成操作后,需要通知数据库分配PreparedStatement内部数据库资源可以释放了。

    youdao

  • The opposite is true: PreparedStatement is recommended when a simple statement is executed many times with different values because the statement has to be compiled only once.

    相反如果要反复执行多次简单语句,并且每次使用不同执行,建议使用PreparedStatement因为语句只需编译一次

    youdao

  • The SQL Maps framework will create a PreparedStatement instance, set any parameters using the provided parameter object, execute the statement, and build a result object from the ResultSet.

    SQLMaps框架创建PreparedStatement实例使用提供的参数对象设置所有参数执行语句以及ResultSet中构建一个结果对象。

    youdao

  • On the other hand, creating a PreparedStatement object introduces a certain amount of overhead, so, ideally, the statement's lifetime will be sufficiently long to compensate for this overhead.

    方面建立一个PreparedStatement对象会带来一定量系统开销所以在理想情况下条语句生命周期应该足够补偿它所带来的系统开销。

    youdao

  • On the other hand, creating a PreparedStatement object introduces a certain amount of overhead, so, ideally, the statement's lifetime will be sufficiently long to compensate for this overhead.

    方面建立一个PreparedStatement对象会带来一定量系统开销所以在理想情况下条语句生命周期应该足够补偿它所带来的系统开销。

    youdao

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定