Home >Backend Development >PHP Tutorial >mysql 排序问题坐等大神

mysql 排序问题坐等大神

WBOY
WBOYOriginal
2016-06-23 13:24:37866browse

两个表如下
a表
d_srl   title
100     a
101     b
b表
c_srl   d_srl
100     100
101     100
102     100
103     101
104     101
我想排列a表条件是b表里d_srl个数最多的从大到小


回复讨论(解决方案)

转换成数组,用asort

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