我有以下简单的测试程序:
CREATE PROCEDURE `testProcess`()
BEGIN
myloop:
loop
select 'in loop';
leave myloop;
end loop;
END
使用它调用时call testProcess()
会产生以下错误:
Error
Static analysis:
1 errors were found during analysis.
Missing expression. (near "ON" at position 25)
SQL query: Edit
SET FOREIGN_KEY_CHECKS = ON;
MySQL said: Documentation
#2014 - Commands out of sync; you can't run this command now
我不知道如何进一步缩小范围!我对 MariaDb 和 MySql 还很陌生,但我不知道在哪里找出问题所在。任何帮助将不胜感激。
我正在使用 MariaDB 10.3.30
编辑:15 小时后,由于系统的变幻莫测,它现在可以正常工作了!编程之神有时会如此讨厌!