Bonjour tout le monde,
j'ai un probleme au niveau d'un alias en rouge
est ce que c'est possible d'utilise ce alias dans le curseur?
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 function f_1 return number is cursor c_1 is select empname, decode(nvl(sal,0),0,1000) a from emp; Sum_sal number(10); Begin for i in c_1 loop Sum_sal := Sum_sal + i.a; end loop; return(Sum_sal); Exception when no_data_found then return(0); when others then return(999999999); end;
Partager