有用过插入oracle的clob字段的朋友吗?
$sql_insert= "insert into test_clob (tid,phone,tclob) values (1,'".$bw_bwphone."','".$bw_text."')";
$handle_insert = OCIParse($conn,$sql_insert);
OCIExecute($handle_insert);
echo "增加成功!";
echo strlen($bw_text);
OCIFreeStatement($handle_insert);
当大于4K就出下面的错:
Warning: ociexecute(): OCIStmtExecute: ORA-01704: string literal too long in /usr/local/apache/htdocs/test_clobaddtodb.php on line 12
增加成功!27260
想问一下,如何在PHP在插入大于4K的数据到CLOB
$handle_insert = OCIParse($conn,$sql_insert);
OCIExecute($handle_insert);
echo "增加成功!";
echo strlen($bw_text);
OCIFreeStatement($handle_insert);
当大于4K就出下面的错:
Warning: ociexecute(): OCIStmtExecute: ORA-01704: string literal too long in /usr/local/apache/htdocs/test_clobaddtodb.php on line 12
增加成功!27260
想问一下,如何在PHP在插入大于4K的数据到CLOB
...全文
相关推荐
Oracle 插入超4000字节的CLOB字段的处理方法
我们可以通过创建单独的OracleCommand来进行指定的插入,即可获得成功,这里仅介绍插入clob类型的数据,blob与此类似,这里就不介绍了,下面介绍两种办法
向Oracle数据库插入Clob大段文本解决方法
向Oracle数据库插入Clob大段文本解决方法
ORACLE中CLOB字段转String类型
ORACLE中CLOB字段转String类型
读取oracle数据库中clob字段的值
把oracle数据库中字段类型为clob的字段值以字符串的形式读取出来
运用Java如何存取Oracle中的CLOB类型字段
运用Java如何存取Oracle中的CLOB类型字段


基础编程
