今天有个thinkphp5.0版本的项目切换到php7.2版本,有个页面一直报错,打开调试代码。发现错误提示“The each() function is deprecated. This message will be suppressed on further calls”。说明php不建议继续使用each函数了,那如何修改代码…
数据库结构: 表内的数据: 自定义函数: 递归查出 树下所有节点 ,参数是 父idcreate function sss(id as int)returns t table(id int not null,name int not null,pid int null)asbegindeclare lay as int;insert into t select * from tree where pid id;select lay min(id) …