HEADER option ignores the header.
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
02c6b50d00
commit
cabc0e7dfe
|
@ -155,7 +155,7 @@ If you're fine with dr's choices you can then create the table and insert the fi
|
|||
|
||||
```
|
||||
$ head wine.csv | dr schema -i -p -n wine | psql
|
||||
$ tail -n +2 wine.csv | psql -c "\copy wine from stdin with (FORMAT 'csv')"
|
||||
$ cat wine.csv | psql -c "\copy wine from stdin with (FORMAT 'csv', HEADER)"
|
||||
```
|
||||
|
||||
Since most databases can ingest and spit CSV files, some simple operations can be enhanced with dr, like storing the results of a query in a parquet file
|
||||
|
|
Loading…
Reference in a new issue