CategoryType] [int] NOT NULL, [SortOrder] [int] NOT NULL FROM CTE cte LEFT JOIN Category c ON cte.ParentId = c.Id
END 如何将此cte sp查询转换为mysql sp兼容版本?我想将我的sp更改为query,因为我要将asp.net核心应用程序
基本上,我的数据库中有一个递归存储过程。现在,在创建它时,我将SET max_sp_recursion_depth=100;放在CREATE PROCEDURE行之前,然后调用该过程。现在,我尝试使用npm-mysql模块通过nodejs调用该过程。Recursive limit 0 (as set by the max_sp_recursion_depth variable) was exceeded for routine insertStation,尽管该过程已经