How can I generate an output in CSV format from a database query?
Location: http://www.jguru.com/faq/view.jsp?EID=455207 Created: Jul 15, 2001 Author: Luigi Viggiano (http://www.jguru.com/guru/viewbio.jsp?EID=101985) Question originally posed by Ritu kumar (http://www.jguru.com/guru/viewbio.jsp?EID=314981 CSV stands for “Comma Separated Values”, so just keep any record and separe each field with a comma and each record with a newline (‘\n’). You’ll have a perfect CSV file, easy readable by any program supporting this simple format. It’s very common to put as first line the names of fields.