We can declare a cursor like this
DECLARE cur1 CURSOR FOR SELECT id,data FROM test.t1;
Can we use a join query instead of a simple query?
We can declare a cursor like this
DECLARE cur1 CURSOR FOR SELECT id,data FROM test.t1;
Can we use a join query instead of a simple query?
Yes, you can use all the various clauses in the SELECT statement except the "INTO" clause.
The simple answer is yes. You can you a join query when declaring a cursor.