我已经尝试过:
return \DB::select('EXEC notes');
return \DB::select('CALL notes');
运行上述代码时出现的错误是:
Packets out of order. Expected 1 received 18. Packet size=101 (SQL: CALL notes())
我做了一个查询:
SELECT @@global.max_allowed_packet
它返回1073741824
增加max_allowed_packet并没有解决问题。
还有其他办法吗?
答案 0 :(得分:0)
$notes = DB::select(
'call notes'
);