标签:内容 order by use 分数 php5 esc ble 注释 查询
COMMENT方法 用于在生成的SQL语句中添加注释内容,www.tk-acc.com 例如: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 / 查询考试前十名分数 /
标签:内容 order by use 分数 php5 esc ble 注释 查询
原文地址:https://blog.51cto.com/13959155/2542671