Home >Backend Development >PHP Tutorial > 生手求教;php sql找出最近相同内容的字段 用id相减输出差

生手求教;php sql找出最近相同内容的字段 用id相减输出差

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-13 12:47:42716browse

新手求教;php sql找出最近相同内容的字段 用id相减输出差
php  mysql数据库找出最近相同内容的字段,用它们的id相减输出差,例如:type字段,(id-1、字段内容5);(id-8、字段内容9);输出9-5的差。新手 详细的。谢谢 谢谢

PHP SQL 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