Re: list of sequences

From: Anders Hermansen <anders(at)yoyo(dot)no>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: list of sequences
Date: 2003-04-02 21:47:35
Message-ID: 20030402214735.GA21421@online.no
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

* Vishnu R (Vishnu_R(at)sifycorp(dot)com) wrote:
> Is there any nice way of getting a list of sequences from a db using jdbc?

Retreive the MetaData with:
connection.getMetaData();

The DatabaseMetaData object has a method getTables, check out the
javadoc:
http://java.sun.com/j2se/1.4.1/docs/api/java/sql/DatabaseMetaData.html

When you set the types parameter to SEQUENCE you will get sequences.

Hope this helps,
Anders

--
Anders Hermansen
YoYo Mobile as

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Vishnu R 2003-04-02 22:20:45 Re: list of sequences
Previous Message Vishnu R 2003-04-02 21:18:33 list of sequences