如何在更新之前将数组传递给postgres函数并循环

时间:2016-08-01 15:32:17

标签: php arrays json postgresql codeigniter

我有一个场景,我想将主键的数组或json数据传递给postgres函数,然后在更新每条记录之前循环遍历json或数组数据。 我已经搜索了两天,但是无法获得有效的代码,请帮助。 这是我的示例函数及其参数

$this->db->query(
  "select create_booking_bn_annual_maintenance($business_id,  $this->client_id, $unpaid_years, $bn_maintenance_ids)");

我使用codeigniter框架来调用函数并传递值

非常感谢你的帮助

0 个答案:

没有答案