cakephp执行原生sql语句

$sql = 'select sum(amount) as amount from option_capital where status = 2 and amount > 0 and user_id = '.$user_id;
$ret = $this->query($sql);

 

posted on 2018-08-10 16:15  薇薇123456  阅读(259)  评论(0编辑  收藏  举报

导航