-1
delimiter $$
create procedure reposta(out mensagem varchar(100))
begin
if new.codigo_veiculo != null then
set mensagem = "Algum veículo está sendo utilizado";
end $$
delimiter ;
error that appears
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 '' at line 5
lacked the
end if;
after setting the value inmensagem
– Don't Panic
worked thanks....
– Demetrius