Get Updated Value in MySQL instead of affected rows

后端 未结 5 548
攒了一身酷
攒了一身酷 2020-11-30 04:59

I\'ve been trying to find an answer to this question, but haven\'t found any definitive \"yes\" or \"no\" in all my research.

I\'m running a simple MySQL query like

5条回答
  •  清歌不尽
    2020-11-30 05:32

    No you cant. You could make a function or stored procedure that could do the insert and return the updated value but that would still require you to execute two queries from within the function or stored procedure.

提交回复
热议问题