Home >Backend Development >PHP Tutorial >字段money的所有数值求和有关问题,请高手指教~多谢

字段money的所有数值求和有关问题,请高手指教~多谢

WBOY
WBOYOriginal
2016-06-13 10:10:211131browse

字段money的所有数值求和问题,请高手指教~谢谢
我有一个表my,其中字段有id,name,money现在我想将字段money的所有数值求和,里面记录有几百个,请问

具体代码怎么实现呀?谢谢指教!

------解决方案--------------------
select sum(money) from my;

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