in reply to Value of a query is returning without any delimiter

Depending on your database, the separators may also be inserted into the output by the dB engine with a tailored select query. For example, under Oracle:
select CUSTOMER||';'||STATUS||';'||ID from ... where ...
The syntax is not really nice and I would tend prefer to reformat with Perl, but it works and can be useful at least for simple queries.

Update: Removed the delimiter after the last column.