Update apps/docs/pages/guides/database/tables.mdx

This commit is contained in:
Copple authored and GitHub committed 2023-02-15 16:23:07 +01:00
1 parent e6d984eaaa
commit 7fcd3feea0
1 file changed
+1
@@ -245,6 +245,7 @@ psql -h DATABASE_URL -p 5432 -d postgres -U postgres \
-c "\COPY movies FROM './movies.csv';"
```
Additionally use the `DELIMITER`, `HEADER` and `FORMAT` options as defined in the PostgreSQL [COPY](https://www.postgresql.org/docs/current/sql-copy.html) docs.
```bash
psql -h DATABASE_URL -p 5432 -d postgres -U postgres \
-c "\COPY movies FROM './movies.csv' WITH DELIMITER ',' CSV HEADER"