How to remove blank spaces from SQL*Plus query?

前端 未结 1 1379
星月不相逢
星月不相逢 2021-01-25 13:32

My query below being called from sqlplus is returning lot of spaces in the end of each value, how can I remove it?

See example below: * I substituted the values with x

1条回答
  •  醉梦人生
    2021-01-25 14:25

    The simplest way is to concatenate the columns with the commas in between, rather than using colsep:

    select process_id
        ||','|| x1
        ||','|| x2
    ...
    

    Note that you only have the comma in the concatenation strong, not between the columns. You end up with a single column in the reult.

    0 讨论(0)
提交回复
热议问题