Re: SQL question
by "David Clapper" <dclapper(at)clioassociates.com>
|
Date: |
Sat, 2 Dec 2000 09:03:50 -0500 |
To: |
<klai(at)rs1winc.com>, <hwg-techniques(at)hwg.org> |
References: |
rs1winc |
|
todo: View
Thread,
Original
|
|
Hello Kenny,
The "more sophisticated" DBMSs (e.g., DB2, Oracle, SQL Server) maintain
their catalog/dictionary in a set of tables or views that's accessible to
the user via SQL. However, you can generally only get the info on objects
that the user you've logged in as has been granted access to.
For example, in Oracle, you should be able to do this by querying the
ALL_TABLE_COLUMNS (or perhaps it's ALL_TAB_COLUMNS - don't have a reference
in front of me) view. (You can DESCRIBE ALL_TABLE_COLUMNS to find out what
columns are in it!).
HTH ... .
David Clapper
Vice-President & Chief Architect
Clio Associates
70 Pavilion St.
Rochester, NY 14620 USA
Voice: +1.716.442.5407
Fax: +1.716.442.5993
Cell: +1.716.259.3699
e-mail: dclapper(at)clioassociates.com
PGP public key ID: 0xC67E9E98
----- Original Message -----
From: Kenny Lai <klai(at)rs1winc.com>
To: <hwg-techniques(at)hwg.org>
Sent: Friday, December 01, 2000 12:01 PM
Subject: SQL question
> hey all,
> is there a way to write a select statement or equilivant to output just
the
> name of the fields of a particular table? thanks in advance
>
HWG hwg-techniques mailing list archives,
maintained by Webmasters @ IWA