chore: add files from master-wiki repo

This commit is contained in:
Alexander Navarro 2024-11-20 20:00:35 -03:00
parent f99a9ae2ac
commit 1847f6bf28
315 changed files with 1047341 additions and 0 deletions

View file

@ -0,0 +1,16 @@
---
title: "Postgres: Export a query to CSV on the client side"
tags: postgres
created: 2024-09-27 09:20
---
# Postgres: Export a query to CSV on the client side
Execute the follow sentence in an **interactive session** of psql:
```sql
\copy (
Select * From foo
) TO '/tmp/test.csv' WITH CSV DELIMITER ';' HEADER
```