pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Jowett <oliver@opencloud.com>
To: wu xiao <zolawu@hotmail.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: a question, please help me.
Date: Thu, 21 Jul 2005 11:51:00 +1200
Message-ID: <42DEE364.20801@opencloud.com> (raw)
In-Reply-To: <BAY13-F22AAE8F6AF0502ABEEFDAAD5D70@phx.gbl>
References: <BAY13-F22AAE8F6AF0502ABEEFDAAD5D70@phx.gbl>

wu xiao wrote:

> PreparedStatement ps = db.prepareStatement("select * from operator where
> ID=?");

> The sqlexception is:....column 'id' is not exist..... What's the reason
> please? All of the tables are created in Windows XP.

If you've created the table with a capitalized column name, you will
need to quote it in your SQL:

  "select * from operator where \"ID\"=?"

Unquoted identifiers (column names, table names, etc) are forced to
lowercase by the server.

-O



view thread (3+ messages)

Message-ID: <42DEE364.20801@opencloud.com>
Permalink:  ../42DEE364.20801@opencloud.com/
Also on:    postgresql.org/message-id/42DEE364.20801@opencloud.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: oliver@opencloud.com, zolawu@hotmail.com
  Subject: Re: a question, please help me.
  In-Reply-To: <42DEE364.20801@opencloud.com>
  References: <BAY13-F22AAE8F6AF0502ABEEFDAAD5D70@phx.gbl> <42DEE364.20801@opencloud.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox