Update 'Copy data to postgresql'
parent
bc6848771d
commit
9d2fae05ef
|
@ -44,3 +44,9 @@ You may also need to alter some columns
|
||||||
```
|
```
|
||||||
psql -U postgres -h localhost -c 'ALTER TABLE "opportunities" ALTER COLUMN "ProductName" type varchar(1024);'
|
psql -U postgres -h localhost -c 'ALTER TABLE "opportunities" ALTER COLUMN "ProductName" type varchar(1024);'
|
||||||
```
|
```
|
||||||
|
|
||||||
|
`dr` can also be used to get and process data from postgres
|
||||||
|
|
||||||
|
```
|
||||||
|
psql -U postgres -h localhost -c 'copy (select * from opportunities limit 10) to stdout (FORMAT 'csv', HEADER)' | dr csv -i -a
|
||||||
|
```
|
||||||
|
|
Loading…
Reference in a new issue