navicat 报错 can't create a function from within another stored routine

在navicat 中写存储函数时出现了这个报错: can't create a function from within another stored routine

navicat 报错 can't create a function from within another stored routine

最后搜索了下,原来在Navicat里面不需要写头,直接从BEGIN开始即可。

过程名将在保存的时候填写,参数则可以填在代码定义框下面的参数输入框中,如果要使用返回值,则可以设定类型为FUNCTION,回传框即可填写。