这是我的存储过程,如果在文档详细信息中找到任何数据但它会生成错误,则返回 true
“ #1064 - 您的 SQL 语法有错误;请查看与您的 MySQL 服务器版本相对应的手册,以在第 5 行的 '@result = true end if end' 附近使用正确的语法”
create procedure abcde(out result boolean)
begin
if exists(select * from document_details)
then @result = true;
end if
end
请尽快给我一个解决方案