You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by Anjana Prakash <an...@actian.com> on 2015/12/11 12:56:14 UTC
Query to fetch table name based on their constaints
Hi ,
Has anyone tried to retrieve table name based on their constraints. i.e. list of table based on their dependency.
Does derby provide system procedure that would list table with their constraint dependency.
Thanks,
Anjana.
RE: Query to fetch table name based on their constaints
Posted by Anjana Prakash <an...@actian.com>.
Thanks Bryan.
I referred to the below API and could get reference to get foreign key and primary key table.
Anjana.
-----Original Message-----
From: Bryan Pendleton [mailto:bpendleton.derby@gmail.com]
Sent: Friday, December 11, 2015 7:57 PM
To: derby-dev@db.apache.org
Subject: Re: Query to fetch table name based on their constaints
On 12/11/2015 3:56 AM, Anjana Prakash wrote:
> Hi ,
>
> Has anyone tried to retrieve table name based on their constraints.
Often you can do this sort of thing using JDBC's DatabaseMetaData:
http://docs.oracle.com/javase/7/docs/api/java/sql/DatabaseMetaData.html
Alternately, have a look at the Derby system tables, which you can write arbitrary queries against:
http://db.apache.org/derby/docs/10.11/ref/rrefsistabs38369.html
bryan
Re: Query to fetch table name based on their constaints
Posted by Bryan Pendleton <bp...@gmail.com>.
On 12/11/2015 3:56 AM, Anjana Prakash wrote:
> Hi ,
>
> Has anyone tried to retrieve table name based on their constraints.
Often you can do this sort of thing using JDBC's DatabaseMetaData:
http://docs.oracle.com/javase/7/docs/api/java/sql/DatabaseMetaData.html
Alternately, have a look at the Derby system tables, which you can
write arbitrary queries against:
http://db.apache.org/derby/docs/10.11/ref/rrefsistabs38369.html
bryan