How to Add column Value to a Set Variable in Mysql in an Update Statement?

前端 未结 0 382
萌比男神i
萌比男神i 2020-12-31 15:19

This works:

update my_table set credits_total = credits_total + 1 where id = 4;

But this doesn\'t:

SET @add_credits = 1;
updat         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题