Re: load database from ascii files

Поиск
Список
Период
Сортировка
От Robert Treat
Тема Re: load database from ascii files
Дата
Msg-id 1059756526.22273.1635.camel@camel
обсуждение исходный текст
Ответ на load database from ascii files  (Xinyu Hua <xhua@cse.ucsc.edu>)
Ответы Re: load database from ascii files
Список pgsql-interfaces
On Fri, 2003-08-01 at 00:26, Xinyu Hua wrote:
> Hi,all
> I used the TPC-H database population tool DBgen and generated some ascii
> files contain pipe-delimited load data for tables. How may I get these
> data loaded to tables and create database in postgresql?
> Thanks in advance.
> Xinyu
>

If you have the tables created, I think you only need to do

COPY table FROM 'filename' WITH DELIMITER '|'

from inside psql and that should work.

Robert Treat
--
Build A Brighter Lamp :: Linux Apache {middleware} PostgreSQL


В списке pgsql-interfaces по дате отправления: