create procedure purchaseDetailsCheckOnDelete(p_purchaseDetailsId varchar(50))
begin
declare p_Exist tinyint(1);
set p_Exist = False ;
select p_Exist = (case count(purchaseDetailsId) when '0' then False else True end from tbl_PurchaseReturnDetails
where (purchaseDetailsId = p_purchaseDetailsId));
select p_Exist ;
end
ERROR 1064 (42000): 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 'from
tbl_PurchaseReturnDetails
where (purchaseDetailsId = p_purchaseDetailsId)' at line 5
沒有機會..沒有Mising) – Nisar