Legen Sie aufeinander folgende zahlen in Oracle PL/SQL-Datenbank

Ich versuche zu legen, eine Reihenfolge von zahlen in einer DB. Das ist mein code aber es funktioniert nicht:

DECLARE 
  j number(10) ;
BEGIN
  FOR j IN 1001020930..1001021930
  LOOP
    INSERT INTO PROD.issue_id(j,'NEW',null)
  END LOOP;
END;

Tisch Struktur:

VARCHAR2 (128 BYTE)
VARCHAR2 (10 BYTE)
DATE

Dies ist der Fehlercode:

Error starting at line 1 in command:
DECLARE 
  j number(10) ;
BEGIN
  FOR j IN 1001020930..1001021930
  LOOP
    INSERT INTO PROD.issue_id(j,'NEW',null)
  END LOOP;
END;
Error report:
ORA-06550: line 6, column 42:
PL/SQL: ORA-01747: invalid user.table.column, table.column, or column specification
ORA-06550: line 6, column 5:
PL/SQL: SQL Statement ignored
ORA-06550: line 8, column 4:
PLS-00103: Encountered the symbol ";" when expecting one of the following:

   loop
06550. 00000 -  "line %s, column %s:\n%s"
*Cause:    Usually a PL/SQL compilation error.
*Action:

Ich verstehe nicht diesen Fehler, denn ich bin sehr neu in PL/SQL

InformationsquelleAutor adohertyd | 2013-06-17

Schreibe einen Kommentar