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文件

 

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