Estoy aprendiendo a programar bases de datos, con MySQL.
Estaba intentando crear el sp siguiente:
Código:
DELIMITER //
CREATE PROCEDURE `bd_planta1`.`consultaPlanta4` (in empleado integer)
BEGIN
select *
from empleados
where (idEmpleado = empleado);
END //
DELIMITER ;
CREATE PROCEDURE `bd_planta1`.`consultaPlanta4` (in empleado integer)
BEGIN
select *
from empleados
where (idEmpleado = empleado);
END //
DELIMITER ;
Y al darle click al botón "Create Stored Proc" me retorna este error:
Código:
Error while executing query.
DELIMITER //
CREATE PROCEDURE `bd_planta1`.`consultaPlanta4` (in empleado integer)
BEGIN
select *
from empleados
where (idEmpleado = empleado);
END //
DELIMITER ;
MySQL Error Number 1064
You have and error in your SQL syntax; check the manual that corresponds
to your MySQL server version for the right syntax to use near 'DELIMETER //
CREATE PROCEDURE `bd_planta1`.`consultaPlanta4` (in empleado integ at line 1
DELIMITER //
CREATE PROCEDURE `bd_planta1`.`consultaPlanta4` (in empleado integer)
BEGIN
select *
from empleados
where (idEmpleado = empleado);
END //
DELIMITER ;
MySQL Error Number 1064
You have and error in your SQL syntax; check the manual that corresponds
to your MySQL server version for the right syntax to use near 'DELIMETER //
CREATE PROCEDURE `bd_planta1`.`consultaPlanta4` (in empleado integ at line 1
No se si sea un fallo mío en cuanto a programación o si es un bugcillo de MySQL que de por si le he visto varios...podría alguien ayudarme? o.o