skip to Main Content

MySQL stored procedure syntax error for cursor select – Phpmyadmin

DROP PROCEDURE CREATE_DUPLICATE_PRODUCT; DELIMITER $$ CREATE PROCEDURE `CREATE_DUPLICATE_PRODUCT`(IN `old_course_id` INT(25), IN `new_course_id` INT(25)) BEGIN DECLARE db_cursor CURSOR FOR SELECT lic.org_id, lic.course_id, lic.license_duration_typeid, lic.insert_date, lic.insert_by, lic.quantity FROM cdp_organization_licenses as lic JOIN cdp_organization_license_settings as sett ON sett.org_license_id = lic.id JOIN cdp_organization_purchases as…

VIEW QUESTION
Back To Top
Search