Priyanka Kaushik
Priyanka Kaushik

Reputation: 153

Oracle query output to be comma-separated

I am writing a batch script for Oracle and want my output in a text file, columns separated by commas.

select 
quote_id ,
coverage_amount from Customer;

But it is coming as tab-delimited. How to get them separated by commas?

Upvotes: 1

Views: 3925

Answers (1)

Michael Durrant
Michael Durrant

Reputation: 96484

select 
quote_id || ', ' || coverage_amount 
from Customer;

Upvotes: 3

Related Questions