Home > Backend Development > PHP Tutorial > mysql查询时如果能用sql计算返回结果好,还是先返回结果再用php处理好,比如对字段转换大小写

mysql查询时如果能用sql计算返回结果好,还是先返回结果再用php处理好,比如对字段转换大小写

WBOY
Release: 2016-06-06 20:36:34
Original
885 people have browsed it

mysql查询时如果能用sql计算返回结果好,还是先返回结果再用php处理好,比如对字段转换大小写,大家一般怎么做

回复内容:

mysql查询时如果能用sql计算返回结果好,还是先返回结果再用php处理好,比如对字段转换大小写,大家一般怎么做

MySQL属于公共资源了,当然是占用的越少越好,能在应用层面处理的,最好不要放到数据库层面处理。

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template