Re: a question, please help me. - Mailing list pgsql-jdbc

From Oliver Jowett
Subject Re: a question, please help me.
Date
Msg-id 42DEE364.20801@opencloud.com
Whole thread Raw
In response to a question, please help me.  ("wu xiao" <zolawu@hotmail.com>)
List pgsql-jdbc
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

pgsql-jdbc by date:

Previous
From: Tom Lane
Date:
Subject: Re: Timestamp Conversion Woes Redux
Next
From: Kris Jurka
Date:
Subject: Re: Timestamp Conversion Woes Redux