使用unload/load命令gbase8s导入导出数据


  1. dbaccess 数据库名 -
    --导出数据到文件 act_ge_bytearray.unl 默认导出位置在 #GBASE安装目录/bin下面#
  2. unload to act_ge_bytearray.unl select * from act_ge_bytearray where deployment_id_ = 'a5b0326b852449a4919df5bf781b734b';
    --导入文件
  3. 使用用户gbasedbt上传文件到 目标数据库的/bin目录下,如果是blob/clob文件也要上传

dbaccess keyan-
load from act_ge_bytearray.unl insert into act_ge_bytearray;
结果:

load from act_ge_bytearray.unl insert into act_ge_bytearray;
2 row(s) loaded.

导出文件截图:
image
上传导入文件截图:
image

遇到的问题:
clob/blob字段会单独导出一个文件,不要忘记上传


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM