只需一步,快速开始
举报
darius 发表于 2023-1-25 11:36 这玩意儿还是在程序逻辑中写吧,sql中count统计后为一行一列,按id查出来的详情信息又可能有0到n行,硬写在 ...
qq6r 发表于 2023-1-25 11:48 sel t.id,count(t.id),count(t2.parent_id) from t left join t2 on t.id = t2.parent_id where t.id = 1 ...
本版积分规则 发表回复 回帖后跳转到最后一页
Archiver|手机版|小黑屋|全球主机交流论坛
GMT+8, 2025-12-14 05:33 , Processed in 0.103546 second(s), 10 queries , Gzip On, MemCache On.
Powered by Discuz! X3.4
© 2001-2023 Discuz! Team.