× 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.



Now since I am getting good with DB2 SQL...

And using the System i Navigator... according to IBM

Columns are grouped by Table
Tables are grouped by Schema
Schemas are contained within a Catalog

On 2015-11-18 17:18, Michael Ryan wrote:
A schema is a library. A table is a physical file. An index or view is a logical file.

Sent from my iPhone

On Nov 18, 2015, at 6:10 PM, Rob <rob.couch@xxxxxxxxxxxxxx> wrote:

So I now have access to my production server.

I have now written a PHP script that successfully connects to DB2.

I have executed my first queries with positive results from a Schema Table.

So if I have it correct ... The DB2 Database is a FILE, which contains SCHEMAS, which contains TABLES.

So I have a list of all Schemas... and I used this query:
SELECT TABLE_SCHEM FROM SYSIBM.SQLSCHEMAS

But when I try to get a list of Tables for a Schema... I get NO JOY!

I have tried:
SELECT TABLE_NAME FROM SYSTABLES WHERE TABLE_SCHEMA = schema_name
SELECT TABLE_NAME FROM SYSTABLES
SELECT * FROM SYSIBM.SYSTABLES WHERE OWNER = 'MySchema' AND TYPE = 'T'
SELECT TABLE_NAME FROM MySCHEMA.SYSTABLES

Nothing Works!

Back to google I go....

Thank you,
Rob



---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.



---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus


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.