Re: What text format is this and can I import it into Postgres?

Поиск
Список
Период
Сортировка
От Mike Christensen
Тема Re: What text format is this and can I import it into Postgres?
Дата
Msg-id CABs1bs0dynVXC4aEuuiiAjOrG4By=qi3BiYcedUrna44YSVSXw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: What text format is this and can I import it into Postgres?  (John R Pierce <pierce@hogranch.com>)
Список pgsql-general
>> This is exactly what I needed.  Thanks so much..  Already got the
>> first table imported..
>
>
> I think would use 'TEXT' for the string fields, INTEGER for the whole
> numbers and NUMERIC for the fractional ones...
> once you have the data imported, and define the appropriate field of each
> table as its PRIMARY KEY, you should be able to do a wide range of joins to
> collect specific sorts of data.

The PDF that's included in the ZIP file actually has all the data
types and precisions, primary keys, and relations.  I just copied that
for my table schemas.  I decided not to define any FK constraints
because I want to easily zap all the data and re-import it when new
versions of the database are released, and I never change any of the
data myself.

Mike


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

Предыдущее
От: Chris Angelico
Дата:
Сообщение: Re: Can column name aliases be supported?
Следующее
От: Craig Ringer
Дата:
Сообщение: Re: Can column name aliases be supported?