Thinkphp3.2.3打印上⼀句执⾏的sql语句
$num = M('joinactivity as a')->join('fh_activity as b on b.a_id = a.a_id')->where($where)->count();
thinkphp3echo M('joinactivity as a')->_sql();
SELECT COUNT(*) AS tp_count FROM fh_joinactivity as a INNER JOIN fh_activity as b on b.a_id = a.a_id WHERE a.u_id = 1 AND a.is_read = 0 AND b.a_time < 1486556237 LIMIT 1
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论