devxlogo

Delimited Data

Delimited Data

Question:
Is there a quick and dirty way to export a delimited datasetvia a simple query? I would like to get something like:

    value1,value2,value3
(The delimeters could be commas, semi-colons, etc.)

Answer:
If your database doesn’t directly support export in CSV (Comma Separated Value) format, you can construct the delimiters in a query with the concatenate operator:

SELECT value1||’, ‘||value2||’, ‘||value3    FROM Table;

devx-admin

Share the Post: