database - 从 t2 的图像(BLOB)更新 t1 的图像(BLOB 列)
问题描述
我需要你帮忙。我正在使用 oracle 数据库 11g 和 pl/sql,我得到的错误是“ORDSYS.ORDIMGB”未声明。有人可以帮忙吗?ORDIMGB 是包还是程序?如果是的话如何创建它?谢谢你。
DECLARE
Image_1 ORDSYS.ORDIMGB;
Image_2 ORDSYS.ORDIMGB;
BEGIN
select photo
into Image_1
from t1
where ID = 1;
select PHOTO
into Image_2
from t2
where ID = 1 for UPDATE;
-- copy the data from Image_1 to Image_2
Image_1.copyContent(Image_2.content);
-- set the image properties for Image_2
Image_2.setProperties;
-- continue processing
UPDATE t2
SET PHOTO = Image_2
WHERE ID = :1;
exception
when others then
rollback;
end;
解决方案
推荐阅读
- reactjs - 为什么导入到 react jsx 文件的函数返回“对象不是函数错误消息”?
- c# - 如何避免看似自动引用“父”命名空间?
- github - 将 master 变基到上游
- parsing - Logstash grok - Apache 访问日志
- wordpress - 如何使用 WordPress、Elementor pro 创建客户端门户?
- java - 在 android 11 及更低版本中设置灯光状态栏的代码 android 11 弃用警告不会发生
- unity3d - 为什么统一 2020 和 2019 不断崩溃?
- java - 迭代地图列表以仅写入其内容
- amazon-web-services - 无法将 Glacier 深度存档恢复到不同的 S3 存储桶
- javascript - Reactjs 功能组件默认 props 和 props 对象