|
Ispirer SQLWays Database Migration Software
Conversion of Cursor with Parameters from Oracle to MySQL
In Oracle cursor may have parameters that can appear in a query wherever a constant can appear. Parameters allow using one cursor with different values of input parameters in the query.
MySQL does not support parameters in cursors.
When converting an Oracle cursor with parameters to MySQL, SQLWays declares and uses local variables instead of the cursor parameters. Before opening the cursor, SQLWays assigns the values of the cursor parameters for these local variables.
Examples: