当前位置:网站首页>ORA-01461: 仅能绑定要插入 LONG 列的 LONG 值
ORA-01461: 仅能绑定要插入 LONG 列的 LONG 值
2022-07-20 23:24:00 【小百菜】
出现该错误,一般是某个字段值的字节长度超过4000的长度。建议改为clob或者截取处理。
String content = "abc123";
if (content != null && content.getBytes(StandardCharsets.UTF_8).length > 4000) {
content = new String(content.getBytes(StandardCharsets.UTF_8), 0, 4000, StandardCharsets.UTF_8);
}
修改字段类型技巧:
1、该字段无数据情况下
varchar2直接修改为clob是会报错的,先修改为long类型,再修改为clob类型。
2、该字段有数据情况下
先重命名该字段为temp,再新建一个字段名字和需要修改的字段一致,使用update把temp更新到新增的字段中,最后删掉temp字段。
边栏推荐
- Huawei wireless device configuration traffic supervision
- 如何提取Matlab可视化图像窗口Figure中的坐标信息
- JS-语法-变量(声明、命名规范、一次性声明多个变量、使用)
- 二叉树的三种层序遍历BFS
- IT运维管理指什么?如何建立有效的IT运维管理系统?
- Junda technology - Mobus to SNMP network monitoring terminal
- OpenCV学习——ArUco模块
- Huawei wireless devices are configured with fast roaming between APs of the same service VLAN
- JS-数组
- Huawei wireless device roaming configures non fast roaming between APs of the same service VLAN
猜你喜欢
MD编辑器 - Typora
rsync 结合 inotify 实现文件实时同步(二)
思科配置VLAN的实例
让实习生搭个Redis集群,差点把我”搭“进去~~~
JS-添加方式(行内 内嵌 外部)
The remote control software should also have plan B alternatives
【无标题】今年值得关注的神书,豆瓣评分高达9.0分,京东当当有售
Encapsulate the global input component and bind parent-child data through V-model
Three sequence traversal BFs of binary tree
Ccs3 comprehensive experiment -- stylesheet file -- design a menu page
随机推荐
C#(四十二)之线程同步、互锁
什么是视频内容推荐引擎?
Analysis of tars source code 25
线程间有哪些资源是不可以共享的?
Huawei wireless devices are configured with rapid roaming between APs of different service VLANs
Simple factory mode (I) application in source code | calendar | source code analysis | use summary | builder mode
RuntimeError: CUDA out of memory. Tried to allocate 32.00 MiB||查看GPU内存
Analysis of tars source code 22
第2讲 Hi3861的WiFi实验-Station模式
【机器学习】如何在训练过程中挑选比较好的模型保存(pytorch)
MySQL explain execution plan analysis
IP第十一天笔记
235. 二叉搜索树的最近公共祖先-dfs法
封装全局input组件,并通过v-model绑定父子数据
JS-语法-变量(声明、命名规范、一次性声明多个变量、使用)
Swift 中风味各异的依赖注入
进程的阻塞和唤醒
What is a video content recommendation engine?
30岁被公司裁员,有人从此一蹶不振,而我逆风翻盘,重获新生~
【等保常见问题解答】等保测评机构能帮忙做等保整改吗?