K
K
kaxa32012019-06-11 10:00:29
PostgreSQL
kaxa3201, 2019-06-11 10:00:29

How to save query result to csv file?

How to keep this business? linux operating system
do this, but the file does not appear, the request is processed

COPY (SELECT  aicraft.id,auto.uri, auto.expires_at, auto.created_at, auto.updated_at
FROM aicraft  LEFT OUTER JOIN aicraft ON aicraft_id = auto.id ) TO '/tmp/stst.csv' ;

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Sviridov, 2019-06-11
@dimuska139

If this is a one-time event, then install Navicat - there is an export of results to CSV. The program is paid, but a trial for 2 weeks should be enough.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question