MySQL Forums
Forum List  »  Stored Procedures

Re: Using LOOP and cursor
Posted by: Peter Brawley
Date: October 05, 2017 12:19PM

> There is really nothing to join the tables on

If that's the case, no cursor will do the job either.

> table1 number being between table2 number_column1 and number_column2 is the only identifier

Then the join clause would be ... on table1.number between table2.column1 and table2.column2?

For us to understand the requirement, please write that query in English rather than fractured SQL, and please post the Show Create Table result for each table.

Options: ReplyQuote


Subject
Views
Written By
Posted
6972
October 04, 2017 03:04PM
781
October 04, 2017 07:07PM
1267
October 05, 2017 08:55AM
636
October 05, 2017 09:01AM
Re: Using LOOP and cursor
778
October 05, 2017 12:19PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.