在这里,当我传递正确和不正确的值时,我得到的结果都是 4
当我执行这个查询时
select Count(*) into result
from document_details
where document_name = name
and document_path = path;
然后它告诉我正确的答案是 1。请尽快帮助我。先感谢您!!
create procedure check_status(IN name INT(30),IN path INT(255))
BEGIN
declare result int;
set result = 0;
select Count(*) into result from `document_details` where `document_name`=name and `document_path`=path;
select result;
END