comment

最后更新于:2022-04-02 01:50:52

COMMENT方法 用于在生成的SQL语句中添加注释内容,例如: ~~~ 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 /* 查询考试前十名分数 */ ~~~
';