php查詢oracle返回欄位讀取,該如何處理

來源:互聯網
上載者:User
php查詢oracle返回欄位讀取
php查詢oracle資料庫後,某個欄位的值為:
["IJINFO"]=>
object(OCI-Lob)#108 (1) {
["descriptor"]=>
resource(117) of type (oci8 descriptor)
}

java查詢後讀出的該欄位內容為文本

請問這種類型的欄位在php中如何讀取?

------解決方案--------------------
沒法讀取
他是一個java對象
------解決方案--------------------
是的,這個欄位裡面儲存的是java對象
所以用java查詢後讀出的該欄位內容為文本

現行oracle資料庫是用java寫成的,所以在oracle資料庫中可以儲存java對象,而不需要額外的開銷
------解決方案--------------------
可以讀取,如:
PHP code
$arr_obj = array(["IJINFO"]=>  object(OCI-Lob)#108 (1) {  ["descriptor"]=>  resource(117) of type (oci8 descriptor)  })$aaa = $arr_obj["IJINFO"]->descriptor;echo "aaa-->>".$aaa."
";
------解決方案--------------------
不可以?我的是這樣的:
PHP code
$mine_mail = Array ( [1] => stdClass Object ( [headers] => Array ( [content-type] => text/plain;charset="utf-8" ) [ctype_primary] => text [ctype_secondary] => plain [ctype_parameters] => Array ( [charset] => utf-8 ) [body] => vif5f+CM/R6Ej4pA3eq7wsRbp/0Irr4GDeqB92pDvW+PSo/lPdFmSvtae4vVFzdb0p64aXra0yH8H4RhY9CScEBzJ+/GpNmzmq8x2IMNRiqannBk5mBaB8zcNA96IQ1oLbwIQLZraCip7IIo3oT1j0uZ/YspW4SSWB4NfOr+554= [mime_id] => 1 ) [2] => stdClass Object ( [headers] => Array ( [x-attach-l] => 1 [content-type] => application/msword;name="netchina_1 ReleasedBy_sean(Data_2012-2-21).doc"; [content-transfer-encoding] => base64 [content-disposition] => attachment;filename="netchina_1 ReleasedBy_sean(Data_2012-2-21).doc" ) [ctype_primary] => application [ctype_secondary] => msword [ctype_parameters] => Array ( [name] => netchina_1 ReleasedBy_sean(Data_2012-2-21).doc ) [disposition] => attachment [d_parameters] => Array ( [filename] => netchina_1 ReleasedBy_sean(Data_2012-2-21).doc ) [body] => sasds)$body = $mine_mail[1]->body;$encoding = $mine_mail[1]->ctype_parameters['charset'];$filename = $mine_mail[2]->ctype_parameters['name'];
  • 聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

    如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.