home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.databases.ingres
- Path: sparky!uunet!europa.asd.contel.com!emory!sol.ctr.columbia.edu!zaphod.mps.ohio-state.edu!cs.utexas.edu!sun-barr!ames!decwrl!concert!uvaarpa!cv3.cv.nrao.edu!mail-to-news-gateway
- From: CS_PAUL@GSBVAX.uchicago.edu (Paul Ford 312/702-0335)
- Subject: re: Finding all tables and table definitions.
- Message-ID: <921105100724.23201b05@GSBVAX.uchicago.edu>
- Sender: root@nrao.edu (Operator)
- Organization: National Radio Astronomy Observatory
- Date: Thu, 5 Nov 1992 16:07:24 GMT
- Lines: 33
-
-
- Sunil Nariani writes:
-
- >My question is how can I get this listing of which tables
- >exist in a database and their field definitions using a C program
- >with embedded sql or using Windows4gl ?
-
- Do what INGRES does when you do 'help' and 'help table': query the
- system catalogs, in particular the views iitables and iicolumns. These
- are documented in full in the INGRES/SQL Reference Manual, Appendix D,
- The INGRES System Catalogs.
-
- To see what queries INGRES is actually performing for help and help
- table run this little script (VMS and Unix alternatives separated by |).
-
- define|setenv II_EMBED_SET printqry
- sql iidbdb
- help \g
- help iirelation \g
- help table iirelation \g
- \q
- deassign|unsetenv II_EMBED_SET
- eve|edt|vi|emacs iiprtqry.log
-
- The file iiprtqry.log contains the text of all the queries performed
- during the terminal monitor session.
-
- Paul Ford
-
- GSB Computing Services 312.702.0335
- University of Chicago cs_paul@gsbvax.uchicago.edu
- 1101 E. 58th Street
- Chicago IL 60637
-