Skip navigation links

MySQL Forums :: French :: Php Admin Trigger bloc if then


Advanced Search

Php Admin Trigger bloc if then
Posted by: clement borgnon ()
Date: May 05, 2012 07:24AM

VOila j'ai un problème dans le trigger suivant )= et ca urg grave!!! lol

CREATE TRIGGER AJOUT BEFORE INSERT ON inscrit
FOR EACH ROW
BEGIN

DECLARE temp varchar(20);
DECLARE curs CURSOR FOR select motdepasse from inscrit;
FETCH curs INTO temp
if temp = New.motdepasse THEN
LEAVE ;

end if;

END $$

A chaque fois jai cette erreur la ....

#1064 - Erreur de syntaxe près de 'if temp = New.motdepasse THEN LEAVE end if; END' à la ligne 8

Si quelqu'un voit une solution =)

Cordialement

Options: ReplyQuote


Subject Views Written By Posted
Php Admin Trigger bloc if then 1227 clement borgnon 05/05/2012 07:24AM
Re: Php Admin Trigger bloc if then 784 Jean Molliné 05/11/2012 01:54AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.