|
Publicité ' | |||||||||||||||||||||||
|
|
#1 |
|
Invité de passage
![]() Inscription : juin 2007 Messages : 3 ![]() |
Bonjour à tous,
Depuis aujourd'hui je travaille sur un projet où il s'agit d'utiliser le moteur de bdd mysql . Le problème étant que je suis habitué à travailler sur postgres. J'ai réussi à faire pas mal de chose, mais je suis bloqué sur une fonction : drop function checkPasswordAnalyst; delimiter // create function checkPassword(typedLogin varchar(30),typedPassword varchar(30)) returns varchar(200) DETERMINISTIC declare result varchar(200); b varchar(30); begin select into b loginAnalyst from analyst where loginAnalyst=typedLogin and passAnalyst=typedPassword; if NOT FOUND then result:="<response><result><field name=\"PasswordCheckingResult\">false</field></result></response>"; else result:="<response><result><field name=\"PasswordCheckingResult\">true</field></result></response>"; end if; return result; end; // delimiter; l'erreur étant : ERROR 1305 (42000): FUNCTION serpComparatorDbFirst.checkPasswordAnalyst does not exist ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'declare result varchar(200); b varchar(30); begin select into b loginAnalyst fro' at line 2 ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'delimiter' at line 1 Merci si vous pouviez m'aider .... |
|
|
00
|
|
|
#2 |
![]() ![]() ![]() Antoine DinimantConsultant en Business Intelligence Inscription : octobre 2006 Messages : 5 854 ![]() |
tu dois juste typer en VARCHAR, sans indiquer la taille.
|
|
|
00
|
Copyright © 2000-2012 - www.developpez.com