[英]What datatype can I use to store a string of 15000+ characters?
I have a string of more than 15000 characters.我有一个超过 15000 个字符的字符串。
I'm using long datatype to store the above string, but getting "string literal too long" exception.我使用 long 数据类型来存储上面的字符串,但得到“字符串文字太长”异常。
Which datatype I should use to store that string in Oracle?我应该使用哪种数据类型将该字符串存储在 Oracle 中?
That would be a CLOB
.那将是一个CLOB
。
Furthermore, quoting what Alex Poole said in his comment:此外,引用亚历克斯普尔在他的评论中所说的话:
But you will have the same issue trying to assign a value to it.但是您在尝试为其赋值时也会遇到同样的问题。 You need to build it up in chunks你需要分块构建它
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.