Student::where('status', 1)
->where('age', '<>', 10)
->order('name', 'DESC')
->order('class')
->limit(2)
->select();
SQL语句:
SELECT * FROM `example` WHERE `status` = 1 AND `age` <> 10 ORDER BY `name` DESC,`class` LIMIT 2
正文完