我正在将一些字符串数据插入数据库,但发现完整的单词没有显示。它只会显示单词的前 9 个字符,然后显示“+”号。
Portabili+
New Enrol+
而不是“可移植性”和“新注册”。
最初,该列的数据类型是 VARCHAR2(10 Bytes),所以我认为这可能是问题所在。
我已经使用 Alter Table 语句将其更改为 100 字节,并插入了新数据以查看它是否会显示完整的单词,但它仍然没有显示。
有什么想法吗?自动截断数据的方式/原因有哪些?
SOLUTION: I figured this out. The answer was to change the size, however, I had to clear the cache on the application server and truncate several cache tables in the DB relating to the application. Now the larger column size is reflected in the DB and the full word shows.
最佳答案
听起来数据在插入时被截断了。增加列无法恢复之前被截断的数据。
关于sql - "+"位于列数据末尾?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21592046/