阅读背景:

如何在mysql中将现有行的列的值加1

来源:互联网 

I have a table called pollData. It will always contain only 1 row. It has columns option1, option2, option3, option4, option5 each of type int. In the beginning, these columns have 0 as their value. How do I add 1 to any column, say option2? I mean do i retrieve the value of that column first, perform addition, and store back, or is there any auto increment function?I have a table called pollData. It will always




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: