📜  codeigniter db where between - PHP 代码示例

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

代码示例1
$minvalue = '2020-01-01 00:00:00';
$max_value = '2050-12-31 23:59:59';
$this->db->where("date_field BETWEEN '$minvalue' AND '$maxvalue'");