Erreur 1305 function concat does not exist
Bonjour ,
Lors de l'execution de ma procédure j'obtiens une erreur 1305 :
FUNCTION calcul_ligne_modifications.CONCAT does not exist
Voici le code de ma procédure ou se trouve la fonction concat :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
|
SET @sqlcmd := CONCAT('insert into calcul_ligne_modifications(code_client,nom_base,nb_ligne,nb_ligne_negatif) values("',client_id);
SET @sqlcmd := CONCAT(@sqlcmd,'","');
SET @sqlcmd := CONCAT(@sqlcmd,base_nom);
SET @sqlcmd := CONCAT (@sqlcmd,'",(select count(id) from');
SET @sqlcmd := CONCAT(@sqlcmd,base_nom);
SET @sqlcmd := CONCAT(@sqlcmd, nomdelatable);
SET @sqlcmd := CONCAT(@sqlcmd ,'),');
SET @sqlcmd := CONCAT(@sqlcmd,'(select count(id) from');
SET @sqlcmd := CONCAT(@sqlcmd, base_nom);
SET @sqlcmd := CONCAT(@sqlcmd,nomdelatable);
SET @sqlcmd := CONCAT(@sqlcmd,'where qui <0))');
PREPARE stmnt FROM @sqlcmd;
EXECUTE stmnt ;
DEALLOCATE PREPARE stmnt; |
Je n'ai pas d'erreur dans le code car a la compilation je n'ai pas d'erreur .
Est ce possible que si une variable vaut null ou ' ' cela me genere cette erreur.
Merci d'avance