J'ai besoin de votre aide SVP.
je sèche.
J' ai la fonction suivante
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
 
create or replace function mafct(error out varchar2, mois_cmpt in varchar2, cercle in varchar2, typ in varchar2)
RETURN BOOLEAN IS
 
ptr number;
 
BEGIN
if typ  != 'M' or 
   typ  != 'E'
   then 
   Dbms_Output.Put_Line(typ );
 
ptr:=ptr+1;
insert into protocol values(' typ erroné '||typ ||' entrez M ou E',null,null,null,ptr);
error:='typ erroné '||typ ||' entrez M ou E';
commit;
   Dbms_Output.Put_Line(typ);
 
      return (FALSE);
end if;
 
return true
END;
lorsque j'appelle ma fonction de la manière suivante:

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
 
declare X boolean;
error varchar2(255);
begin
X:=  mafct (error , '01.2025', 'AZ', 'E');
end;
j' ai une erreur qui me dit que le typ est erroné. Je ne comprends pas puisque dans ce cas mon typ est E

Merci.