DECLARE BEGIN
FOR USER IN ( SELECT ID FROM "USER_TABLE" WHERE STATUS = '0' )
loop
BEGIN
INSERT INTO "USER_MENU"
VALUES
( SEQ_USER_MENU.nextval, USER .ID, 30 );
END;
END loop;
commit;
END;
DECLARE BEGIN
FOR USER IN ( SELECT ID FROM "USER_TABLE" WHERE STATUS = '0' )
loop
BEGIN
INSERT INTO "USER_MENU"
VALUES
( SEQ_USER_MENU.nextval, USER .ID, 30 );
END;
END loop;
commit;
END;