Clob用於存儲高達4 GB的數據字符。它與Varchar類似。那麼clob需要什麼?我們可以使用BFile來存儲文檔,pdf ..等等。當使用varchar,Bfile,NCLOB時CLOB的需求是什麼?
那麼爲什麼我們需要CLOB?
Clob用於存儲高達4 GB的數據字符。它與Varchar類似。那麼clob需要什麼?我們可以使用BFile來存儲文檔,pdf ..等等。當使用varchar,Bfile,NCLOB時CLOB的需求是什麼?
那麼爲什麼我們需要CLOB?
CLOB:max。 8 TB(!)取決於DB塊的大小 - 「DB字符集」
NCLOB:最大。 8 TB(!)取決於DB塊大小 - 「國家字符集」
VARCHAR:max。 2000個字符或4000個字節
BFILE:存儲在操作系統文件,而不是數據庫本身BINARY數據(最大4 GB)
http://download.oracle.com/docs/cd/E11882_01/server.112/e17118/sql_elements001.htm#i45441
http://download.oracle.com/docs/cd/B19306_01/server.102/b14220/datatype.htm
Varchar2(或至少被)封頂在表中最大長度爲4000處。 CLOB的可能比這更長。我的大部分知識是oracle 7/8/9,所以現在VARCHAR2可能會超過4000。但是當天你不得不使用CLOBs