重庆思庄Oracle、Redhat认证学习论坛
标题:
ORACLE如何实现通过dblink访问不同字符集的库
[打印本页]
作者:
郑全
时间:
2021-3-12 16:19
标题:
ORACLE如何实现通过dblink访问不同字符集的库
本帖最后由 郑全 于 2021-3-12 16:21 编辑
可以使用 utl_raw.cast_to_raw 来实现:
读:
select s.item_class,
s.item_code,
utl_raw.cast_to_raw(item_name) groupname,
utl_raw.cast_to_raw(s.item_spec) spec,
s.price
from current_price_list@dblink_to_yb s;
写:
update current_price_list set item_name=utl_raw.cast_to_varchar2(item_name)
where item_code='002200';
欢迎光临 重庆思庄Oracle、Redhat认证学习论坛 (http://bbs.cqsztech.com/)
Powered by Discuz! X3.2