6comment

6comment
点击领取淘宝京东拼多多唯品会优惠券

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 /* 查询考试前十名分数 */
复制

上一篇:6cache

下一篇:6fetchSql