|
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.
As an Amazon Associate we earn from qualifying purchases.
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.