db2 服务器上链接db2数据库 并导出数据

1。首先登陆上服务器,然后进如bd2 

db2

2.然后链接到数据库

connect to sss(表名)

3.导出数据

export to aaaa.del of del select * from xxxxx where a=a;

aaaa.del是保存的文件名。of del应该是语法表示是del文件

也可以加上路径。export to 20191024/aaaa.del of del select * from xxxxx where a=a; 表示在当前目录下的20191024文件夹下创建aaaa.del文件

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章