Re: list of sequences - Mailing list pgsql-jdbc

From Anders Hermansen
Subject Re: list of sequences
Date
Msg-id 20030402214735.GA21421@online.no
Whole thread Raw
In response to list of sequences  (Vishnu R <Vishnu_R@sifycorp.com>)
List pgsql-jdbc
* Vishnu R (Vishnu_R@sifycorp.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


pgsql-jdbc by date:

Previous
From: Vishnu R
Date:
Subject: list of sequences
Next
From: Vishnu R
Date:
Subject: Re: list of sequences