猿问

求帮我把这段原生SQL语句转成TP5的谢谢!

求大神帮我把这段原生SQL语句转成TP5的谢谢!就是Db::('name')->这种链式操作的
'select a.id, a.title,a.create_time,a.is_solve,count(b.qid) as answer_count from fa_question a,fa_answer b where a.id=b.qid and a.is_solve=0 group by b.qid order by answer_count DESC LIMIT 6';

LEATH
浏览 335回答 1
1回答
随时随地看视频慕课网APP
我要回答