Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Selecting all columns
Renee,
Try this
select a.table_name,a.column_name,a.data_type,a.data_length from
user_tab_columns a,
user_tables b
where b.tablespace_name=upper('&tablespace_name')
and a.table_name=b.table_name
;
Suhen,
Thankyou, that worked like a charm. What I should have also have asked though, is it possible to query the length of the field, ie: varchar2 300 (being the length)?
Thanks again,
renée
> -----Original Message-----
> From: root_at_fatcity.com [mailto:root_at_fatcity.com]On Behalf Of Suhen
> Pather
> Sent: Thursday, February 01, 2001 4:05 PM
> To: Multiple recipients of list ORACLE-L
> Subject: RE: Selecting all columns
>
>
> Renee,
>
> Not sure if this is what u want
>
> select a.table_name,a.column_name,a.data_type from user_tab_columns a,
> user_tables b
> where b.tablespace_name=upper('&tablespace_name')
> and a.table_name=b.table_name
> ;
>
> Suhen
>
>
> -----Original Message-----
> Sent: Thursday, February 01, 2001 2:51 PM
> To: Multiple recipients of list ORACLE-L
>
>
>
> What would be the sql needed if possible (in sql*plus) to
> select all column
> names (and respective table) and their column type within a
> tablespace?
>
> Much appreciated,
>
> renée
>
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author: Renee Bonnett
> INET: renee_at_openwindows.com.au
>
> Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
> San Diego, California -- Public Internet access / Mailing Lists
> --------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you want to be removed from). You may
> also send the HELP command for other information (like subscribing).
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author: Suhen Pather
> INET: Suhen.Pather_at_strandbags.com.au
>
> Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
> San Diego, California -- Public Internet access / Mailing Lists
> --------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you want to be removed from). You may
> also send the HELP command for other information (like subscribing).
>
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Renee Bonnett INET: renee_at_openwindows.com.au Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Suhen Pather INET: Suhen.Pather_at_strandbags.com.au Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).Received on Thu Feb 01 2001 - 01:19:24 CST