你可以new一个空的Model对象,然后使用query($sql)方法去使用原生的sql。
例如,
$model = new Model();//或者$model = M();$Model->query('SELECT * FROM thinkphp WHERE status = 1');