Re: PGResultSetMetaData

Поиск
Список
Период
Сортировка
От Chris Smith
Тема Re: PGResultSetMetaData
Дата
Msg-id 01c701c50182$47c05350$7500000a@KALIO
обсуждение исходный текст
Ответ на PGResultSetMetaData  (leo <usenet@workfile.de>)
Список pgsql-jdbc
leo wrote:
> as I need getTableName() and getSchemaName() I found
> the interface PGResultSetMetaData.
> Is ist still experimental?
> Has anybody used it already? If so, could you give me
> a hint how to implement it?

It's not experimental.  However, instead of using the PostgreSQL
implementation class, you should stick to the JDBC API.

    ResultSet rs = stmt.executeQuery(...);
    ResultSetMetaData rmd = rs.getMetaData();

    String table = rmd.getTableName(1);
    String schema = rmd.getSchemaName(1);

(just for example)

--
www.designacourse.com
The Easiest Way To Train Anyone... Anywhere.

Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation


В списке pgsql-jdbc по дате отправления:

Предыдущее
От: leo
Дата:
Сообщение: PGResultSetMetaData
Следующее
От: leo
Дата:
Сообщение: Re: PGResultSetMetaData