How to get rid of “Error 1329: No data - zero rows fetched, selected, or processed”

后端 未结 7 1653
心在旅途
心在旅途 2020-12-01 13:51

I have a stored procedure which does not need to return any values. It runs smoothly and without any problem. However, it outputs an error message after finishing its run:

7条回答
  •  借酒劲吻你
    2020-12-01 14:27

    I don't know if this fixes the cursor issue, but I ran into this warning with a stored function and found that if you use:

    RETURN (SELECT x From myTable...);
    

    instead of

    SELECT x into myVar...return myVar
    

    I got this from this helpful doc: http://bugs.mysql.com/bug.php?id=42834

提交回复
热议问题