Home >Backend Development >PHP Tutorial > mysql 怎么累加

mysql 怎么累加

WBOY
WBOYOriginal
2016-06-13 12:41:111131browse

mysql 如何累加?
比如现在我有个值897存在MYSQL里头
新加入763 最终得到897+763

是不是一定要先访问MYSQL取897然后加上763

再写入MYSQL

我现在想要的是 有没有不用先取897直接写入763而写入的值是897+763

等于就是想少访问一次MYSQL

MySQL
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn