Mysql : Not allowed to return a result set from a function

前端 未结 2 1838
陌清茗
陌清茗 2021-01-27 17:46

I have write one function but getting this error Not allowed to return a result set from a function

DEL         


        
2条回答
  •  清歌不尽
    2021-01-27 18:02

    Mysql complains about SELECT statement in your function,

    probably it understands SELECT p_KeyValue = ListName + '.' + Value as comparison

    change it to

    SELECT CONCAT(ListName, '.', Value) INTO p_KeyValue
    

提交回复
热议问题