选择 * FROM tbl_booking WHERE '2023-10-27 13:00:00' 之间 开始日期和结束日期
选择 * FROM
tbl_booking
我需要在代码点火器中编写查询,如何完成
你可以这样做
$this->db->select('*'); $this->db->from('tbl_booking'); $this->db->where('2023-10-27 13:00:00 BETWEEN startDate AND endDate'); $query = $this->db->get();