× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



There's a pretty good explanation here https://www.simple-talk.com/sql/t-sql-programming/exploring-your-database-schema-with-sql/ though it focuses on SQL Server.

E F Codd's fifth rule (rule no. 4) says that to be a relational database a system must have a catalog of its parts that can be queried using the same language used for querying ordinary tables. This "schema" was standardized in SQL-98, I think, with a standard meta-schema name "INFORMATION_SCHEMA" and tables within that schema "TABLES", "TABLE-CONSTRAINTS", "VIEWS", "TRIGGERS", and so on. See here for a good list http://dev.mysql.com/doc/refman/5.0/en/information-schema.html. Before that all the databases supported the systables, sysviews, sysconstraints, etc. de facto naming convention.

So, the JDBC standard doesn't need to provide any methods for querying for a list of schemas as SQL itself already has defined them.

-----Original Message-----
From: java400-l-bounces@xxxxxxxxxxxx [mailto:java400-l-
bounces@xxxxxxxxxxxx] On Behalf Of James H. H. Lampert
Sent: Thursday, August 29, 2013 7:35 PM
To: 'Java Programming on and around the IBM i'
Subject: List of schemas and tables via JDBC?

I haven't even started looking, but would anybody happen to know where I
need to look, for how one gets a list of databases/schemas/tables
available at any given JDBC URL?

And are the relevant methods already exposed in JDBCR4?

(I'm beginning to think that by the time I'm done with extensions to
JDBCR4, it will be more like JDBCR4000.)

--
JHHL
--
This is the Java Programming on and around the IBM i (JAVA400-L) mailing list
To post a message email: JAVA400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/java400-l.




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.