※ 引述《erho (ptt訪客)》之銘言:
: Datatype Description Max Size:
: Oracle 9
: VARCHAR2(size) Variable length character
: string having maximum
: length size bytes.You must
: specify size 4000 bytes minimum is 1
: CLOB Character Large Object 4Gigabytes
: 我把大於varchar(4000)的字串放入clob的形態的欄位,但仍然顯示
: ORA-01704: string literal too long 的訊息,
: 請問要怎樣的條件下才能利用CLOB形態存入大量的文字資料
: oracle data type 參考自
: http://www.ss64.com/orasyntax/datatypes.html
大概不是因為 column 的 datatype 問題.
CLOB 的確可以放很長的文字.
你是用什麼方法插入?
比如, 如果你是直接把 value 放在 insert SQL 裡面
這又會涉及DBMS 對於 SQL 裡的 string literal
有沒有長度上限.
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 202.155.236.82