
22/04/2011, 17:21
|
 | | | Fecha de Ingreso: abril-2011
Mensajes: 3
Antigüedad: 13 años, 10 meses Puntos: 0 | |
como soluciono este error use 'proyecto';
CREATE PROCEDURE insertarMateria(IN nombreM VARCHAR(45), IN descripcion VARCHAR(200))
BEGIN
DECLARE n VARCHAR(45);
DECLARE des VARCHAR(200);
SET n= nombreM;
SET des = descripcion;
INSERT INTO materia VALUES('',n,des)
END
hola resulta que boy hacer ese sp y cuando lo voy a ejecutar sale este error
Error Code: 1064
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 4
gracias a los que me puedan colaborar |