SQL Anywhere 10 - 引号显示在输出 CSV 中

SQL Anywhere 10 - Quotes showing up in Output CSV

我正在尝试将数据提取到 CSV 中,但我的数据显示提取的字符周围有引号。我怎样才能删除这些?当我的临时列有 space

时,它也被分成两个不同的字段

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 有自己的列,' 不是数据库中值的一部分。

试试这个

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

应该这样做。