Re: Issue with insert

From: Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>
To: Michael Gould <mgould(at)intermodalsoftwaresolutions(dot)net>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Issue with insert
Date: 2010-02-27 17:50:38
Message-ID: dcc563d11002270950l4ce7ee4bg248443ce957ee087@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Sat, Feb 27, 2010 at 10:14 AM, Michael Gould
<mgould(at)intermodalsoftwaresolutions(dot)net> wrote:
> I'm having a issue with a insert
>
> INSERT INTO
>  iss.citystateinfo
> (
>  citystateinfoid,
>  citystate,
>  zipcode,
>  cityname,
>  statecode
> )
> VALUES (
>  '31344342-3439-4135-2d32-3044462d3433',
>  'Orange Park,FL',
>  '32065',
>  'Orange Park',
>  'FL'
> );
>
> This inserts correctly, however when I view the data the citystate is always
> displayed as
>
> Orange Park (FL).  Every row is displayed the same.  I've used PGAdmin to
> look at the data, EMS for PostGres and have exported the data to Excel and
> they all display the data incorrectly.  This is a issue for us because we
> want the user to type in either the zipcode if known to bring back the city
> and state, or the city,state to bring back the zipcode.
>
> Any idea's on why this could be happening.  I'm running on Windows 7 x64
> using 8.4.2

When you display it, do you use pgadmin or psql? Does psql do the same thing?

Can we see the ddl that created this table? Can you create a
self-contained test-case that others can run and see the same results?

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Michael Gould 2010-02-27 20:25:54 Re: Issue with insert
Previous Message Michael Gould 2010-02-27 17:14:39 Issue with insert