Bonjour, je suis totalement débutant en PL/SQL (depuis hier donc),
Et je ne comprends pas où j'ai une erreur dans mon code.
SQL developper me renvoie sans cesse
Symbole ";" rencontré à la place d'un des symboles suivants : ) , * & = - + < / > at in is mod remainder not rem .....
La ligne 21 correspond à
SET pdateheuredebut := pdateheuredebut + interval '1' minute;
Je ne vois pas où je pèche, mais il est clair que le problème vient de moi, ça c'est sur.... !!!
Merci de votre aide.
Voici mon code :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
| DECLARE
CURSOR MAREQ IS
SELECT * FROM temp_obi_of_jour ;
begin
for lig_reg in mareq loop
declare
pdateheuredebut timestamp := dateheuredebut;
pdateheurefin timestamp := dateheurefin;
while pdateheuredebut-pdateheurefin>=0
begin
insert into temp_obi_of_jour_minute (CODECDC,CODEOF,DATECDC,DATEHEUREMINUTE,NUMLIGNEOF,CODEMAGASIN) values(lig_reg.CODECDC,lig_reg.CODEOF,lig_reg.DATECDC,pdateheuredebut,lig_reg.NUMLIGNEOF,lig_reg.CODEMAGASIN);
end;
SET pdateheuredebut := pdateheuredebut + interval '1' minute;
end;
end loop;
end ; |
Partager