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



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


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.