Help - moving data to new table structure - Mailing list pgsql-general

From Brian Johnson
Subject Help - moving data to new table structure
Date
Msg-id 20030109.3Ut.09509300@192.168.0.1
Whole thread Raw
Responses Re: Help - moving data to new table structure
List pgsql-general
I'm working on moving contact data from MS Access to some predefined tables in
PostgreSQL (part of another application)

I need some help creating one of the append queries

The Access tables include a table called "Contact Type" that is linked
to "Contacts" (the main table for the contact data) with a one to many type
relationship (ie each contact can have many types attached to it)

The new table layout in PostgreSQL will allow multiple contact types, but they are
listed as comma separated values in one field.  The php code in this app then
matches up the comma separated values with corresponding records in the "Contact
Type" table

How the heck do I make a query to transfer the data to this new format?


pgsql-general by date:

Previous
From: "Chris Boget"
Date:
Subject: Re: How can I do this?
Next
From: Tom Lane
Date:
Subject: Re: Feature-request: allowing the date/time type to accept ISO8601 compliant date/time combinations on input