estoy creando este procedimiento almacenado por medio de un script, pero me da un error me podrian indicar cual es el error.
CREATE DEFINER=`newportaladmin`@`%` PROCEDURE `ExecutablesToBeDeleted`(
in productid int,
in platformid int,
in deviceid int
)
BEGIN
select e.idExecutable, e.bundleName, e.status from mybd.executables e
inner join mybd.products_has_executables pxe on e.idExecutable=pxe.executableIdExecutable
inner join mybd.devices_has_executables dxe on dxe.executableIdExecutable=e.idExecutable
where pxe.productIdProduct =productid AND e.platformIdPlatform=platformid AND e.status='distribution'
and dxe.deviceIdDevice=deviceid
and e.idExecutable not in
(select p.executableIdExecutable
from mybd.products_has_executables p
where p.productIdProduct!=productid);
END
DELIMITER $$
antes del BEGIN luego en el END ponerEND $$
y luegoDELIMITER ;
@AndredGarciaMartinDELIMITER
y cómo usarlo correctamente, revisa este tutorial. Si el código sigue dando error, pulsa en editar para ver cómo ha quedado luego de ponerDELIMITER
.