Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Find all tables with a particular field

Re: Find all tables with a particular field

From: DA Morgan <damorgan_at_psoug.org>
Date: Mon, 18 Sep 2006 17:01:47 -0700
Message-ID: <1158624104.499411@bubbleator.drizzle.com>


Fred Wilson wrote:
> Hello,
>
> How does one go about finding all the tables that have a particular
> field name? For example a field name "EVENT_CODE"
>
> I would like to find all the places in the database this is located.
> Ultimately I want to further find in that field the code "0214" and
> change it to "0200".
>
> Thank you,
> Fred

All relational databases have data dictionaries. Are you familiar with the concept? If not then I suggest the following query:

SELECT view_name
FROM all_views
WHERE (view_name LIKE 'USER%' OR view_name LIKE 'ALL%') ORDER BY 1; The one you are looking for is: xxx_tab_columns.

-- 
Daniel Morgan
University of Washington
Puget Sound Oracle Users Group
Received on Mon Sep 18 2006 - 19:01:47 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US