ResultSet is from UPDATE. No Data

前端 未结 3 1885
后悔当初
后悔当初 2021-01-24 08:46

The problem occurs when executeQuery function runs, the sql statement is work correctly and gives correct results when it is runned on the sql editor. When it is runned on jdbc

3条回答
  •  心在旅途
    2021-01-24 09:08

    This is not possible, you have to separate your queries, of for the best solution you can use procedures or function.

    1. Procedure should take lectureID
    2. Return your result, in your case it should multiples valus, you can read How to retrieve multiple rows from stored procedure in mysql? to know how to use procedure return multiple values

提交回复
热议问题