如何删除标题,新行字符和“”

时间:2014-03-13 03:42:19

标签: sql oracle11g ansi-sql

我在oracle中查询,输出为

"S.ACQUIRER||'|'||SUBSTR(S.ACQ_COUNTRY,1,4)||'|'||SUBSTR(S.ACQ_CURRENCY_CODE,1,5)||'|'||S.PAN||'|'||SUBSTR(S.ACCTNUM,1,18)||'|'||SU\
BSTR(I.E_NAME,1,35)||'|'||S.LOCAL_DATE||'|'||S.LOCAL_TIME||'|'||DECODE(S.PCODE,0,'POSTRANSACTIONFROMDEFAULTACCOUNT',1000,'POS"
"9000000007|840|840|5048349120900000008|504834000000006028|Ecustomer name                     |03-JAN-14|115744|Cash Withdrawl from\
Savings Account |10|Approved |2000061|ATM Test Terminal        Bang      |123400000123456          |01001101"
"9000000007|840|840|5048349120900000008|504834000000006028|Ecustomer name                     |03-JAN-14|115744|Cash Withdrawl from\
Savings Account |10|10|4000061|ATM Test Terminal        Bang      |123450000000456          |01001101"

预期输出是多少

9000000007|840|840|5048349120900000008|504834000000006028|Ecustomer name                     |03-JAN-14|115744|Cash Withdrawl from Savings Account |10|Approved |2000061|ATM Test Terminal        Bang      |123400000123456          |01001101

9000000007|840|840|5048349120900000008|504834000000006028|Ecustomer name                     |03-JAN-14|115744|Cash Withdrawl from Savings Account |10|10|4000061|ATM Test Terminal        Bang      |123450000000456          |01001101

我的期望是:

  1. 应该没有标题

  2. 每行开头都不应该有“<”

  3. 新行字符“\”不应出现

  4. 我尝试使用以下命令删除标题,但没有成功

    设置HEADING OFF

    设置pagesize 0

    如何在没有标题"\

    的情况下实现输出

1 个答案:

答案 0 :(得分:1)

SET HEADDING OFF中不存在

Oracle,请使用

SET HEADING OFF