Using the Oracle database parser from Java using JDBC

前端 未结 2 1830
误落风尘
误落风尘 2020-12-21 05:42

I\'m writing a tool in Java which submits statements to a database, which are later run. I\'m using JDBC to connect to the database. The database is Oracle 10g.

Befo

2条回答
  •  情歌与酒
    2020-12-21 06:43

    Without executing the Query, your cannot get a feedback(or resultset, about it. Connection.preparedStatement just return you a PreparedStatement object, which is just a handler.

    PreparedStatement.executeQuery() is only what executes the query actually, pushing to the database.

提交回复
热议问题