标签:etc ng2 board 获取数据 lob sele his from var
php oracle数据库clob和nclob字段
nclob类型
1.nclob不能使用php的stream_get_contents来获取数据库的资源内容,
2.并且nclob只能使用to_char(字段名)来获取字符信息,
3.to_char是将nclob转成varchar2字符类型,但是varchar2最大自由4000字节,超出4000字节不能完成数据的读取
clob
可以完美解决nclob的缺点
$sql = "select ID,BOARDING2,ISOUTSIDE from WX_CHECKIN where ID = ‘cb9424db95e25309b61a5f20e52eb482‘"; $data = $this->db->fetchOne($sql, Phalcon\Db::FETCH_ASSOC); is_resource($data[‘BOARDING2‘]) && $data[‘BOARDING2‘] =stream_get_contents($data[‘BOARDING2‘]);
标签:etc ng2 board 获取数据 lob sele his from var
原文地址:https://www.cnblogs.com/achengmu/p/9571197.html