how to export the reusult of a query to a comma delimited data file? can anyone give me an example? It would be better if the output file has the table column names in the first row.

thanks.