我试图将数据拉到CSV中,但是我的数据显示了字符周围的引号。我怎么才能移除这些?另外,当我的临时列有一个空格时,它会被分隔成两个不同的字段。
UNLOAD SELECT tran_num, provider_id, amount, tran_date, collections_go_to , impacts, type, 'Store Name' AS Store FROM transactions TO 'C:\Users\administrator\Desktop\StoreName.csv' delimited by ' '
最终的结果如下: 788 SLG‘0 2009-12-21 SLG’P‘S’Store Name‘
在Store & Name中有自己的列,并且‘不是DB中值的一部分。
发布于 2015-12-04 00:43:51
尝尝这个
UNLOAD
SELECT tran_num, provider_id, amount,
tran_date, collections_go_to,
impacts, type, 'Store Name' AS Store
FROM transactions
TO 'C:\Users\administrator\Desktop\StoreName.csv'
delimited by ' '
QUOTES OFF这样就行了。
https://stackoverflow.com/questions/33681454
复制相似问题