<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>All_tab_columns on Oracle Scripts</title><link>https://www.oraclescripts.com/tags/all_tab_columns/</link><description>Recent content in All_tab_columns on Oracle Scripts</description><generator>Hugo -- gohugo.io</generator><language>en</language><copyright>OracleScripts.com</copyright><lastBuildDate>Wed, 06 Mar 2024 00:00:00 +0000</lastBuildDate><atom:link href="https://www.oraclescripts.com/tags/all_tab_columns/index.xml" rel="self" type="application/rss+xml"/><item><title>Find Tables Containing a Specific Column in Oracle Database</title><link>https://www.oraclescripts.com/post/find-tables-containing-a-specific-column-in-oracle-database/</link><pubDate>Wed, 06 Mar 2024 00:00:00 +0000</pubDate><guid>https://www.oraclescripts.com/post/find-tables-containing-a-specific-column-in-oracle-database/</guid><description>
&lt;h2 id="find-tables-containing-a-specific-column-in-oracle-database"&gt;Find Tables Containing a Specific Column in Oracle Database&lt;/h2&gt;
&lt;h2 id="purpose"&gt;Purpose&lt;/h2&gt;
&lt;p&gt;Which tables in this database have a column called &lt;code&gt;CUSTOMER_ID&lt;/code&gt;? Sooner or later every DBA or developer needs the answer. The &lt;code&gt;DBA_TAB_COLUMNS&lt;/code&gt; view lists the columns of every table, view, and cluster in the database. One query against it returns each owner and table that has a column with the name you give.&lt;/p&gt;
&lt;p&gt;This helps in many daily tasks. You may need to see how tables relate through a shared key. You may plan to rename or drop a column and want to know where it lives. You may be checking that a column such as a status flag exists in every schema that should have it. The query below does the job from any SQL*Plus session.&lt;/p&gt;</description></item></channel></rss>