|
楼主 |
发表于 2009-7-2 10:33:42
|
显示全部楼层
本帖最后由 xian366 于 2009-7-2 10:35 编辑
现在打算这样
$data=array(
'name'=>'tester',
'title'=>'this is a test',
'comments'=>array('CLOB'=>yourBlobData)
);
$this->oci->insert('yourtablename',$data);
这样看合理不?大家有没有更好的方法,
或者这样:
$data=array(
'name'=>'tester',
'title'=>'this is a test',
'comments'=>array('CLOB','yourBlobData')
);
$this->oci->insert('yourtablename',$data);
generated SQL:
insert into test2 (name,tittle,comments) values ('tester','this is a test!',EMPTY_CLOB()) RETURNING comments INTO :myclob |
|