DB2导入导出带BLOB字段的表
1、环境准备:
#su - db2inst1
$mkdir /tmp/test
$db2 get db directory 可获取数据库名字
$db2 connect to testdb
2、导出数据:
export to "/tmp/test/test.del" of del lobs to /tmp/test/ select * from test
说明:
(1)表名test前面需要带schema名
(2)如不确认表结构,可用命令 db2 describe table test查询
3、导入数据:
确认环境信息没有问题执行导入命令
import from "/tmp/test/test.del" of del lobs from /tmp/test/ insert into test
声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
阅读量:27
阅读量:49
阅读量:67
阅读量:28
阅读量:36