输出最后一条sql语句
thinkphp5
echo Db::table('table_name')->getLastSql();
时间等于当天时间
DAY(create_date)=DAY(NOW())
thinkphp3
$res = M('user_heart_rate')->getLastSql();
dump($res);
输出最后一条sql语句
thinkphp5
echo Db::table('table_name')->getLastSql();
时间等于当天时间
DAY(create_date)=DAY(NOW())
thinkphp3
$res = M('user_heart_rate')->getLastSql();
dump($res);