Home >Backend Development >PHP Tutorial >指定字段求和,该如何解决

指定字段求和,该如何解决

WBOY
WBOYOriginal
2016-06-13 10:45:24807browse

指定字段求和

想求出韩姓用户,已经上传文件大小。
怎么写啊?谢谢啊

------解决方案--------------------
select SUM(daxiao) as size where username like '韩%';
------解决方案--------------------
as size

给他起个外号叫size.

探讨

size是什么啊
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