Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我目前正在对 MySQL 进行一些编码并获得了 FUNCTION。对我来说,代码看起来不错,但是 MySQL 抛出了一个
Error Code: 1415 Not allowed to return a result set from a function 错误。
Error Code: 1415 Not allowed to return a result set from a function
功能: 点击这里,pastebin.com
正如我所说,我没有在其中看到任何语法错误,并且根本无法理解为什么它会引发错误。仅在执行时,创建没有任何问题。
我已经用谷歌搜索了,并没有找到任何对我有帮助的东西,所以我希望你能。谢谢指教。
我用 ROUND(RAND()) 替换了新函数中引用的所有其他函数,它运行良好;会不会是其中一个函数试图返回结果集?