| От | John R Pierce |
|---|---|
| Тема | Re: question about \encoding option of psql |
| Дата | |
| Msg-id | 4EE99304.7080708@hogranch.com обсуждение исходный текст |
| Ответ на | question about \encoding option of psql (Xiaobo Gu <guxiaobo1982@gmail.com>) |
| Ответы |
Re: question about \encoding option of psql
|
| Список | pgsql-general |
On 12/14/11 10:12 PM, Xiaobo Gu wrote: > I know \encoding is a meta command to set client encoding on psql > prompt, but how can I set it inside the psql command line which will > be called inside shell scripts, > > psql -h 192.168.72.7 -U gpadmin -w -d miner_demo -c"\copy demo.store > to 'd:\store.csv' with csv header" > > > How can I set the encoding for the export csv file? one thing that comes to mind, put the \encoding and \copy commands in a .sql file, and invoke it with psql .... -f file.sql -- john r pierce N 37, W 122 santa cruz ca mid-left coast
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера