Answer the question
In order to leave comments, you need to log in
How to output data to csv?
Good afternoon, there is a script that displays 2 columns, how can I display this whole creation by cells into a csv file
SET NAMES WIN1251;
select table_name from table;
select dp.code, DP.INSTANCE_CODE, count(*)
from DX DP
where DP.STAT = 2
group by 1,2
order by count(*) desc;
OUTPUT TO '/opt/sometable.csv' FORMAT ASCII DELIMITED BY ',' QUOTE ''
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question