oracle可用存储过程

CREATE OR REPLACE PROCEDURE myPro
(
ST_NUM IN NUMBER,
ED_NUM IN NUMBER
)
IS
BEGIN
declare
       i number;
begin
FOR i IN ST_NUM..ED_NUM LOOP
INSERT INTO BASIC_CORP_SORT(BASIC_CORP_SORT_ID,BASIC_CORP_NAME) values(i,'你啊可能');
END LOOP;
end;
END;

你可能感兴趣的:(oracle可用存储过程)