你好,导出数值的时候会出现+0000000000000002.13这种格式,使用db2 export to xx.del of del modified by decplusblank striplzeros select * from test导出时,前面的空格你现在解决了吗
你可以尝试在export命令中使用modified by decplusblank nodt,这样可以避免数据中的空格。例如:
db2 export to xx.del of del modified by decplusblank nodt
如果还有问题,请尝试使用trim函数来去除空格。例如:
db2 export to xx.del of del select trim(column1), trim(column2) from table1
这样应该可以将数据导出为没有空格的格式。