首页 > 数据库技术 > 详细

cakephp执行原生sql语句

时间:2018-08-10 16:29:59      阅读:849      评论:0      收藏:0      [点我收藏+]
$sql = select sum(amount) as amount from option_capital where status = 2 and amount > 0 and user_id = .$user_id;
$ret = $this->query($sql);

 

cakephp执行原生sql语句

原文:https://www.cnblogs.com/xiaobiaomei/p/9455739.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!