add void repo files

This commit is contained in:
Alexander Navarro 2024-11-13 21:29:52 -03:00
parent 80ef6e92c4
commit 11895a94c4
148 changed files with 15344 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
```