錯誤1064(42000):您的SQL語法錯誤;檢查 對應於你的MySQL服務器版本使用附近的正確語法手冊「(塞萊 克拉IFNULL(計數(tbl_Product.manufactureId),0) 從tbl_product其中馬努」第5行過程中的錯誤1064
create procedure ManufactureCheckForDelete(p_manufactureid varchar(50))
begin
declare p_id longtext ;
declare p_result longtext;
set p_id (select ifnull(count(tbl_Product.manufactureId),0)
from tbl_product where manufactureId = p_manufactureId
) ;
if p_id <> 0 then
set p_result = 'true' ;
else
set p_result = 'false' ;
end if ;
select p_result ;
end
可能是最糟糕的問題標題有史以來 – bgusach
問題的標題是不是很清楚分配。嘗試具體。 –
* = *運算符在哪裏? 'set p =(...' –