We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1ffec14 + f53eb76 commit 6ff7dadCopy full SHA for 6ff7dad
postgres/export-query-results-to-a-csv.md
@@ -28,4 +28,10 @@ keyword:
28
copy (select * from pokemons) to '/tmp/pokemon_dump.csv' csv header;
29
```
30
31
+If your user has limited access, you can use the \copy command like so:
32
+
33
+```sql
34
+\copy (select * from pokemons) to '/tmp/pokemon_dump.csv' with csv header;
35
+```
36
37
[source](http://stackoverflow.com/questions/1120109/export-postgres-table-to-csv-file-with-headings)
0 commit comments