Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Problem with mapping of timestamptz datatype in postgres to Java data type

843859Jun 18 2008 — edited Nov 20 2014
Hi

I am using postgres database through JDBC.

I have a table that contains one of the column data type as timestamptz. Now I need to get this data into my Java application.

Can you please let me know, how to map timestamptz data type in postgres to Java data type.

I tried with resultset.getDate, resultset.getTime and resultset.getTimestamp. But it doesn't work.

Could you please suggest a solution for this.

Thanks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 16 2008
Added on Jun 18 2008
3 comments
311 views