diff --git a/Copy-data-to-postgresql.md b/Copy-data-to-postgresql.md index dd27512..14f5eae 100644 --- a/Copy-data-to-postgresql.md +++ b/Copy-data-to-postgresql.md @@ -37,4 +37,10 @@ tail -n +2 /data/raw/data.csv | iconv -c -f ASCII -t UTF-8 | psql -U postgres -h To change the semicolon separator with comma: ``` sed --expression='s/;/,/g' +``` + +You may also need to alter some columns + +``` +psql -U postgres -h localhost -c 'ALTER TABLE "opportunities" ALTER COLUMN "ProductName" type varchar(1024);' ``` \ No newline at end of file