JDBC Statement/PreparedStatement per connection

后端 未结 1 1842
名媛妹妹
名媛妹妹 2020-12-17 06:44

I was wondering how many statements or preparedstatements can be opened per connection at the same time. I don\'t really understand how would it work if multiple statements

相关标签:
1条回答
  • Multiple statements can be created and used on the same connection, but only one resultset at once can be created and used on the same statement. If you create/open another one by the same statement, then any previously opened resultset will be implicitly closed, leading to "ResultSet closed" exceptions on any attempt to access it.

    0 讨论(0)
提交回复
热议问题