获取sql语句 用于调试、排错、优化
- getLastSql
$res = Db::table('staff')->field('id,salary')->where('id','>',1)
->group('salary')->having('salary > 5000')->select();
$sql = Db::table
获取sql语句 用于调试、排错、优化
$res = Db::table('staff')->field('id,salary')->where('id','>',1)
->group('salary')->having('salary > 5000')->select();
$sql = Db::table