Обсуждение: Newbie JDBC Datetime Question

Поиск
Список
Период
Сортировка

Newbie JDBC Datetime Question

От
Steven Bradley
Дата:
Is there a ResultSet method that can be used to access postgres datetime
columns, or does the timestamp data type and the getTimestamp() method have
to be used.


Thanks in advance...

Steven Bradley
Lawrence Livermore National Laboratory
sbradley@llnl.gov


Re: [INTERFACES] Newbie JDBC Datetime Question

От
Herouth Maoz
Дата:
At 03:38 +0300 on 22/06/1999, Steven Bradley wrote:


> Is there a ResultSet method that can be used to access postgres datetime
> columns, or does the timestamp data type and the getTimestamp() method have
> to be used.

As far as I know, you can use a datetime column as if it was the JDBC
timestamp type. So getTimestamp() will work with a datetime column as well.

Herouth

--
Herouth Maoz, Internet developer.
Open University of Israel - Telem project
http://telem.openu.ac.il/~herutma