在DB2数据库中,在导出DEL文件时,默认的字符分隔符是".字段分隔符是, (逗号).有一个需求是要为Oracle数据库提供数据,因此就想使用"|"作为数据的字段分隔符.在查看了export的使用说明后,发现export的file-mod模式中可以通过CHARDELx和COLDELx,分别设置字符分隔符和字段分隔符. 但是,当运行export to 'e:\test.txt' of del modified by chardel0x22 coldel0x7c select *…
1.在dos中查看用户表 1.1查看表 DB2 LIST TABLES FOR USER 1.2 查看表结构 DB2 describe table A 2.在DB2连接工具中(这里以SQLdbx为例子) 2.1查看用户表清单SELECT RTRIM(TABSCHEMA) AS CONTNAME, -- RTRIM(TABNAME) AS NAME, RTRIM(TBSPACE) AS TBSPACE, DEFINER AS DEFINER FROM SYSCAT.TABLES WHERE (LE…
一.导入导出 ixf: db2 export to /tmp/xxx.csv of ixf lobs to . xml to . modified by codepage=1208 "select * from sysibm.dual" db2 import from tablename of ixf insert into schema.tablename del: db2 export to /tmp/file.csv of del modified by codepage=12…