【问题标题】:Error : This feature is not available for the database you are using when trying to return insert_id错误:在尝试返回 insert_id 时,此功能不适用于您正在使用的数据库
【发布时间】:2013-11-27 10:23:21
【问题描述】:

我的 codeigniter 模型中有函数返回函数 insert_id() 我正在使用 Oracle11g,有谁知道如何使用 Oracle DB 在 codeigniter 中返回最后插入的记录 这是我想做的一个例子

public function test_insert($data)
{
  $this->db->insert('PERFORMANCE', $data);
      return $this->db->insert_id();
}

您的帮助将不胜感激。谢谢。

【问题讨论】:

    标签: php oracle codeigniter


    【解决方案1】:

    好吧,这个 insert_id() 特性不适用于 Oracle11g。 您可以参考答案here,作为替代方案。

    【讨论】:

      猜你喜欢
      • 2012-12-06
      • 1970-01-01
      • 2012-06-19
      • 1970-01-01
      • 1970-01-01
      • 2023-04-02
      • 1970-01-01
      • 2015-11-06
      • 2020-06-20
      相关资源
      最近更新 更多