错误:此功能不适用于您使用的数据库 [英] Error : This feature is not available for the database you are using

查看:106
本文介绍了错误:此功能不适用于您使用的数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用oci8作为Codeigniter中的数据库驱动程序。
当使用下面的代码调用存储过程给我错误:

I am using oci8 as my database driver in Codeigniter. While using the following code that calls a stored procedure gives me error :

$this->db->call_function('update_letter_body', $body_letter, $insert_id);

Error : This feature is not available for the database you are using.

应该怎么做才能使这项工作?

What should be done to make this work ?

我试图设置一个超过4000个字符的值,似乎不能从直接查询中工作,似乎codeigniter不支持调用oracle的函数。有什么建议么 ?

I am trying to set a value that has more than 4000 characters which doesn't seem to work from direct query and seems like the codeigniter does not support calling functions for oracle. Any suggestions ?

推荐答案

hmmm,尝试

$this->db->query("CALL update_letter_body(".$body_letter.",".$insert_id.")");

call_function

检查文档

http://ellislab.com/codeigniter/user- guide / database / call_function.html

这篇关于错误:此功能不适用于您使用的数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆