Bonjour j'arrive pas a faire ma premiere proc stockee sous MySQL 5
C'est pourtant limite un copier/colle du manuel.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5 CREATE PROCEDURE insertform(param CHAR(30)) BEGIN INSERT INTO test(name) VALUES(param); END;
Voila l'erreur:
Merci
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6 Error code 1064, SQL state 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 '' at line 3 Line 1, column 1 Error code 1064, SQL state 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 'END' at line 1 Line 4, column 1
Quand j'enleve le ";" a la fin du INSERT ca supprime la 1ere erreur...
Partager