Bonjour,
voilà j'ai une fonction dans ma base de donnée, à laquelle je passe la variable "identifiant".
Dans cette fonction j'ai cette requete :
SELECT location.DATEDEBUT, location.DATEFIN, location.ID_TYPE_LOCATION into v_dateDebut, v_dateFin, v_idTypeLocation
FROM location
WHERE location.IDENTIFIANT = identifiant;
Quand je remplace "identifiant" par 3, la fonction marche, quand je fais un return identifiant il contient bien 3, mais quand je l'exécute tel qu'elle j'ai un message d'erreur comme quoi trop de résultats ont étés retournés par rapport aux paramètres.
Où est l'erreur?
J'appelle ma fonction comme cela : SELECT CALCULTARIF(3) FROM DUAL
Merci 