You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
label:
LOOP
FETCH cur_1 INTO
event_id,only_code,garage,space;
IF done THEN
LEAVE label;
END IF;
set @SqlStmtA1 = concat('delete from ', eventtablename, ' where id=', event_id);
prepare stmtA1 FROM @SqlStmtA1;
EXECUTE stmtA1;
COMMIT;
END LOOP;
CLOSE cur_1;
The text was updated successfully, but these errors were encountered:
Unfortunately the support for procedural SQL is pretty much non-existant in SQL-Formatter. Even if it would parse this code without errors, the formatted output would be pretty ugly. Specifically it would be as follows:
label: LOOP FETCH cur_1 INTO event_id,
only_code,
garage,
space;
IF done THEN
LEAVE label;
END IF;
set
@SqlStmtA1 = concat(
'delete from ',
eventtablename,
' where id=',
event_id
);
prepare stmtA1
FROM
@SqlStmtA1;
EXECUTE stmtA1;
COMMIT;
END
LOOP;
CLOSE cur_1;
The text was updated successfully, but these errors were encountered: