GBase 8s
运维管理
文章
外部表的导出数据~~~~~~超级神器
GBase社区管理员发表于2023-05-16 10:46:0280次浏览0个评论
db=gdb
mkdir /home/informix/czw/50w/${tab}
dbaccess -e -m ${db} <<! >./log/${tab}_imp.log 2>&1
drop table if exists ext_${tab};
create external table ext_${tab} sameas ${tab}
using
(datafiles("DISK:/home/informix/czw/50w/${tab}/${tab}%r(1..5).tbl"),
format "delimited",
DELIMITER '|',
express,
rejectfile "/tmp/${db}/${tab}.err",
maxerrors 10
);
set pdqpriority 100;
set environment IFX_BATCHEDREAD_TABLE '1';
insert into ext_${tab} select * from ${tab};
drop table ext_${tab};
!
评论已关闭
热门帖子
- 12025-12-01浏览数:182764
- 22023-05-09浏览数:25062
- 42023-09-25浏览数:18526
- 52020-05-11浏览数:17529