📜  codeigniter 中的行数 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:32.525000             🧑  作者: Mango

代码示例2
$this->db
  ->where(['field'=>'foo'])
  ->from("tablename")
  ->count_all_results();

//OR 
$this->db
  ->where(['field'=>'foo'])
  ->count_all_results("tablename");