Oracle Query,为什么围绕结果双引号,我可以阻止它们吗? 我正在运行一个查询来创建一个修复长度文件,我将发送到要处理的大型机。结果有双引号,我需要在发送文件之前将其删除。如果可能,我需要通过查询来阻止引号。这是查询:
SELECT '00000000' ||
CAST(' ' AS CHAR(161)) || '95005000000000000000' ||
CAST(' ' AS CHAR(63)) ||
CAST(CONACCT.CONTACT_ID AS CHAR(24)) ||
CAST(CONACCT.LOCATION_CODE AS CHAR(6)) ||
CAST(CONACCT.ACCT_NUM AS CHAR(18)) ||
CONACCT.NAME_RELATIONSHIP ||
CONACCT.LEAD_CONTACT_IND ||
CONACCT.RESPONSIBLE_PARTY ||
CONACCT.CAS_ADDRESS_IND ||
CAST(CONACCT.EXT_SYS_ID AS CHAR(4)) ||
CONACCT.PREF_CURRENCY
FROM CACS.CONTACT_ACCOUNT CONACCT,
CACS.ACCOUNT ACCT
WHERE CONACCT.ACCT_NUM = ACCT.ACCT_NUM
结果看起来像(为简洁起见,我删除了大部分数据): “00000000 95005000000000000000 ... USD”
我需要双引号不在结果中。感谢。