delimiter //
create procedure ProductGroupGenerationSettingsCheck(p_id tinyint(1),p_result varchar(50))
begin
select automaticProductIdGeneration into p_id from tbl_Settings;
if(p_id = 0) then
set p_result = 'false';
else if (p_id = 1) then
set p_result = 'true';
end if ;
select p_result as result ;
end //
delimiter ;
1064 - 您的SQL语法出错;检查与MySQL服务器版本对应的手册,以便在'begin set p_result ='false'附近使用正确的语法;如果(p_id = 1)在第5行开始设置p_re'
,则结束