Oracle 4個大對象(lobs)資料類型介紹

來源:互聯網
上載者:User

在Oracle中,有4個大對象(lobs)類型可用,分別是blob,clob,bfile,nclob。

下面是對lob資料類型的簡單介紹。

blob:二進位lob,為位元據,最長可達4GB,存貯在資料庫中。

clob:字元lob,字元資料,最長可以達到4GB,存貯在資料庫中。

bfile:二進位檔案;存貯在資料庫之外的唯讀型位元據,最大長度由作業系統限制。

nclob:支援對位元組字元集合(nultibyte characterset)的一個clob列。

對於如何檢索和操作這些lob資料一直是oracle資料庫開發人員經常碰到的問題。下面我將在oracle對lob資料處理的一些方法和技巧,介紹給讀者,希望能夠對讀者以後的開發有所協助。

oracle中可以用多種方法來檢索或操作lob資料。通常的處理方法是通過dbms_lob包。

其他的方法包括使用api(application programminginterfaces)應用程式介面和oci(oracle call interface)oracle調用介面程式。

相關文章

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.