它总是给error


  #1415:不允许从函数返回结果集。


Pickup_request是一个表; schedule_time是datetime变量,customer_id是主键,而varchar(45)变量

最佳答案

您需要使用INTO +变量名将所有SELECT查询的输出存储到变量中。在您的示例中,SELECT schedule_time INTO @schedule_time

还要检查Why mysql is giving error "Not allowed to return a result set from a function"?的答案

关于mysql - 以下My Sql Code中的错误是什么?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/45116787/

10-14 13:38
查看更多