Bonjour tout le monde ;
j'ai crée un simple function sur oracle
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
 
 
create or replace function GET_NEXT_ID (SEQUENCE_NAME IN VARCHAR2) RETURN NUMBER 
IS
v_next_id INTEGER ;
y_query VARCHAR2 (100);
BEGIN
y_query :=  'SELECT'||SEQUENCE_NAME||'.nextval from dual' ;
execute immediate v_query into v_next_id ;
 
Return (v_next_id);
end 
GET_NEXT_ID;
l'ors de l'execution , j'obtient cette erreur

PLS-00103: Encountered the symbol " " when expecting one of the following: . @ % ;

quelqu'un a une solution svp ? merci pour votre aide .