Db::table(‘think_score‘)->comment(‘查询考试前十名分数‘)
->field(‘username,score‘)
->limit(10)
->order(‘score desc‘)
->select();
最终生成的SQL语句是:
SELECT username,score FROM think_score ORDER BY score desc LIMIT 10 / 查询考试前十名分数 /
2022-07-15 15:54:19
Db::table(‘think_score‘)->comment(‘查询考试前十名分数‘)
->field(‘username,score‘)
->limit(10)
->order(‘score desc‘)
->select();
最终生成的SQL语句是:
SELECT username,score FROM think_score ORDER BY score desc LIMIT 10 / 查询考试前十名分数 /
下一篇:CSS选择器