这在MSSQL服务器中给出了准确的结果
execute proc_Attn_Mon_General 801, '2018-04-14', '2018-05-14', 0
但这给出了不完整的结果
$query = $this->db->query("execute proc_Attn_Mon_General @emp_id='$emp_id', @date_from='$start_date', @date_to='$end_date', @Aflag=0");
return $query->result_array();
或者这个
$query = $this->db->query("execute proc_Attn_Mon_General ".$emp_id.",'".$start_date."','".$end_date."', ".$Aflag." ");
return $query->result_array();
我做错了什么吗?
the query works fine but this could be issue of your slow network connection