BLOB 存入文件
发表于:2024-10-21 作者:千家信息网编辑
千家信息网最后更新 2024年10月21日,1.向blob字段插入文本INSERT INTO lobdemo (key, clob_col, blob_col, bfile_col) VALUES (51, 'This is another c
千家信息网最后更新 2024年10月21日BLOB 存入文件
1.向blob字段插入文本INSERT INTO lobdemo (key, clob_col, blob_col, bfile_col) VALUES (51, 'This is another character literal', HEXTORAW('ABABABABABABABABABAB'), NULL);2.更新blob字段文本UPDATE peoplesoft SET SUPPLIER_ID = HEXTORAW('CDCDCDCDCDCDCDCDCDCDCDCD') where rownum =2;update PEOPLESOFT_1M set supplier_id = utl_raw.cast_to_raw(vendor_id) ;3.向blob字段插入文件CREATE TABLE yuser (ID number,photo BLOB);create or replace directory images as '/test'; declare l_bfile bfile; l_blob blob; begin insert into yuser(ID,photo) values(1,empty_blob()) return photo into l_blob; l_bfile:=bfilename('IMAGES','test.doc'); --IMAGES 是上面创建目录的大写 dbms_lob.open(l_bfile,dbms_lob.file_readonly); dbms_lob.loadfromfile(l_blob,l_bfile,dbms_lob.getlength(l_bfile)); dbms_lob.close(l_bfile); commit; end; /
update的方式
declare l_bfile bfile; l_blob blob; begin update yuser set photo = empty_blob() where id = 2 return photo into l_blob; l_bfile:=bfilename('IMAGES','PS.pdf'); dbms_lob.open(l_bfile,dbms_lob.file_readonly); dbms_lob.loadfromfile(l_blob,l_bfile,dbms_lob.getlength(l_bfile)); dbms_lob.close(l_bfile); commit; end; 、
字段
文本
文件
大写
方式
目录
更新
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
php使用udl连接数据库
网络安全公司财报
绝地求生的主播都在哪个服务器
微信腾讯云服务器认证
搭建与管理网络服务器
青少年日网络安全科普教育
计算机网络技术每周几节课
网络技术真题pdf
国际版2b2t服务器id
象过河软件服务器
网络安全讲课课件
网络安全与密码学发展趋势
数据库添加主键冲突记录
档案数据库用什么语言
山西开源软件开发服务至上
山东快卡网络技术公司
国内网络安全品牌排名
服务器售前如何明确客户需求
58同城医疗数据库
绿联科技的云服务器怎么样
手机安全软件开发
昆明中汐互联网科技有限
cpci数据库全称
可道云服务器列目录
mc服务器连不上
万象初新是哪个服务器
天津机架式服务器机箱供应商
怎样用广东税务软件开发票
全高清点播服务器
软件开发外包的坑