I am trying to implement a task in java using JDBC like Stored Procedure in SQL. In SQL, when we write cursor, first we execute select query and then fetching the records we
It doesn't happen like that, You can try until your query gets executed loop will wait.