[9i]appelé 1 fonction en sql
bonsoir,
voila mon probleme :
j'ai créer une fonction et je voudrais l'appelée avec
Code:
select F_MAJ_FLAGCEL('11111','toto@toto.com') FROM DUAL;
mais j'ai cette erreur:
Code:
1 2 3 4 5
| ORA-14551 cannot perform a DML operation inside a query
Cause: DML operation like insert, update, delete or select-for-update cannot be performed inside a query or under a PDML slave.
Action: Ensure that the offending DML operation is not performed or use an autonomous transaction to perform the DML operation within the query or PDML slave. |
dans la base il y a qu'un enregistrement celui qui corespond a "11111" ,hors si je met
Code:
select F_MAJ_FLAGCEL('22222','toto@toto.com') FROM DUAL;
il n'y a pas d'erreur (il ne ce passe rien mais il n'y a pas d'erreur)
quelqu'un pourrait il m'aider?
merci