mirror of
https://github.com/supabase/supabase.git
synced 2026-10-07 02:15:05 +03:00
Revert "Update apps/docs/pages/guides/database/tables.mdx"
This reverts commit ad91ee8d59.
This commit is contained in:
1 parent
ad91ee8d59
commit
e6d984eaaa
1 file changed
+8
@@ -243,6 +243,14 @@ You would [connect](../../guides/database/connecting-to-postgres#direct-connecti
|
||||
```bash
|
||||
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"
|
||||
```
|
||||
|
||||
Tip: If you get a `FATAL: password authentication failed for user "postgres"` error, reset the password in your Database settings and try again.
|
||||
|
||||
## Joining tables with Foreign Keys
|
||||
|
||||
|
||||
Reference in new issue
Block a user