当前位置:网站首页>oralce mapping 映射CLOb
oralce mapping 映射CLOb
2022-07-20 05:11:00 【thoughtCodes】
项目场景:
提示:这里简述项目相关背景:
a bitter loser:
private Integer id;
private String name;
private int age;
private byte[] pic; // 映射blob
private String remark; // 映射longtext
问题描述
提示:这里描述项目中遇到的问题:
映射CLOB 的类型:
select * from t_student where id = #{id}
原因分析:
提示:这里填写问题的分析:
例如:Handler
发送消息有两种方式,分别是 Handler.obtainMessage()
和 Handler.sendMessage()
,其中 obtainMessage
方式当数据量过大时,由于 MessageQuene
大小也有限,所以当 message
处理不及时时,会造成先传的数据被覆盖,进而导致数据丢失。
解决方案:
提示:这里填写该问题的具体解决方案:
BLOB (binary large object),二进制大对象,是一个可以存储二进制文件的容器。
在计算机中,BLOB常常是数据库中用来存储二进制文件的字段类型。
BLOB是一个大文件,典型的BLOB是一张图片或一个声音文件,由于它们的尺寸,必须使用特殊的方式来处理(例如:上传、下载或者存放到一个数据库)
CLOB使用CHAR来保存数据。 如:保存XML文档。
BLOB就是使用二进制保存数据。 如:保存位图。
JAVA里面对CLOB的操作
在绝大多数情况下,使用2种方法使用CLOB
1 相对比较小的,可以用String进行直接操作,把CLOB看成字符串类型即可
2 如果比较大,可以用 getAsciiStream 或者 getUnicodeStream 以及对应的 setAsciiStream 和 setUnicodeStream 即可
推荐阅读:
https://www.cnblogs.com/vipzhou/p/5640686.html
边栏推荐
- Apache Doris ODBC外表之Postgresql使用指南
- 【科学文献计量】中英文文献标题及摘要可读性指标分析与可视化
- Apache Doris ODBC appearance database mainstream version and its ODBC version correspondence
- Zigbee安全概述
- CentOS下Apache Doris Oracle ODBC外表使用指南
- Usage and configuration of Apache Doris ODBC MySQL appearance under Ubuntu
- Vben admin time selector related configuration and setting of unselectable time
- [wechat applet request encapsulation] [advanced version] process 401 request token expiration -- login again -- reissue the request that just expired
- 请问一下老师们,flink SQL kafka connector中的startup mode 选择
- What should virtual host agents pay attention to?
猜你喜欢
In depth understanding of MySQL execution process and execution sequence
Understand and apply continuous deployment Argo CD
Apache Doris Binlog Load使用方法及示例
Relevant characteristics of TCP protocol
Apache Doris 使用 Prometheus Alertmanager 模块发送 异常信息至钉钉报警群
Cmake basic grammar and practical project analysis
5-FU/DEX-g-PLA纳米微粒/BSA-AgNCs-PEI纳米粒/Cu(DDC)2蛋白纳米粒的制备
什么是技术支持? | 每日趣闻
[scientific literature measurement] keyword mining and visualization
Websocket服务器代码协议解析,学会自己做协议思路。
随机推荐
【英雄哥七月集训】第 19天:二叉树
STL list constructor, size
解决OpenCV读取视频结束后报错的问题
Cmake basic grammar and practical project analysis
Technical dry goods | solve 80% of the problems in the interview, and realize auc/roc based on mindspire
【微信小程序】文本域输入带最大字数限制(1/100)
Jenkins Automated Deployment
想请问一下我把在ecs上自建的mysql数据库的数据同步到MC中,使用binlog的方式同步,制定
使用renren-generator逆向生成CRUD代码
基于Ansible实现Apache Doris快速部署运维指南
What 111
Apache Doris Oracle ODBC外表使用指南
Chinese anchors can also bring goods overseas! Simultaneous interpretation helps live broadcast applications expand overseas markets
SQL optimization (x): association update
【模板引擎】微服务学习笔记六:freemarker
Apache Doris 通过ODBC连接SQL Server
Do you dare to use BigDecimal without mastering these pits?
Apache Doris ODBC外表数据库主流版本及其ODBC版本对应关系
Introduction to Command Line
CentOS下Apache Doris Oracle ODBC外表使用指南