Re: put text list into table form

From: Sean Davis <sdavis2(at)mail(dot)nih(dot)gov>
To: Web2cad <alex(at)web2cad(dot)co(dot)jp>, <pgsql-novice(at)postgresql(dot)org>
Subject: Re: put text list into table form
Date: 2006-01-30 11:43:55
Message-ID: C003662B.4A91%sdavis2@mail.nih.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

On 1/25/06 9:23 PM, "Web2cad" <alex(at)web2cad(dot)co(dot)jp> wrote:

> Hi
> I have a list of cities stored in flat file that I would like to left join
> with another table.

Why not just do:

Select * from table2 where table2.city in ('city1','city2','city3');

Is that what you ultimately want to do?

> The file looks like this:
> city1,city2,city3

Sean

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Oleg 2006-01-30 11:45:51 wrong objects order using pg_dump
Previous Message Devrim GUNDUZ 2006-01-30 08:21:55 Re: Question about support for SUSE 10