How to find the table in a schema, if I only have a particular column name

Hi all

Ideal if some1 could help me, I know not a column name and I need to find the table that actually holds this column paricular name I know.

is it possible to find this particular table with SQL?

Thank you
Rahul

Select the table TABLE_NAME from user_tab_columns where column_name = 'COLUMN_NAME '.

Tags: Database

Similar Questions

  • How to find the tables placed only on pages.

    Hi experts,

    I find all the tables in the document (no XML Indd file.) .indd There is only a certain number of tables. And a table in the master page also. Now I'm trying to get back only the tables except the master page. How can I got it?

    I used the following code. But it is not working properly.

    var myTables is app.activeDocument.stories.everyItem () .tables;.

    App.Select(mytables[0]);

    var myTableCount = myTables.length;

    Alert (myTableCount);

    for (var i = 0; i < myTableCount; i ++) {}

    var myTableObj = myTables [i];

    Alert (myTableObj.parent);

    Try

    {

    var myTableObj.parent.parentPage.name = XXX;

    If (xxx.match("^[0-9]+$"))

    {

    Alert ('table');

    myTableObj.label = 'table' +(i+1);

    }

    on the other

    {

    Alert ("Master Page table");

    }

    }

    catch (e)

    {

    Alert (e.message);

    }

    }

    Always throw catch loop...

    Can someone guide me...!

    Thank you and best regards,

    Vel.

    Hi Peter,.

    Finally, I close with the codes below. It make me fight a lot...

    var pagelen = app.activeDocument.pages.length;

    Alert (pagelen);

    for (var i = 0; i)<>

    {

    var pageitemlen = app.activeDocument.pages [i].pageItems.length;

    for (var j = 0; j)<>

    {

    v var = app.activeDocument.pages [i] .pageItems [j] .tables;

    Alert (v.Length);

    for (var x = 0; x)<>

    {

    App.Select (v [x]);                                                      Here, I can select.

    App.Selection [0] .label = "table" + count;

    Count ++;

    myTables.push (v [i]);

    }

    }

    }

    Peter, thank you very much for your time in Golden for my problem...

    With respect,

    Vel.

  • How to find the table?

    Hello

    I have a java Apps to connect to a database of GR 11, 2.
    When I clicked on a "billing" module, I don't 'a number' 1,641.00 error in java logs that cause billing does not be generated.
    I don't even enter this value. I don't know if this error at the level of the table or during analysis on the coast of java it fetch a numeric variable placeholder.
    I simply assume that it is at the database level. And assuming that I am the only user in the database.
    How can I get this operation with the 1,641.00 value and determine which table was is inserted to the error? In V$ SQLAREA maybe?
    SYSUSER - 263293-40-1 2012-07-10 11:08:25,578 [http-6700-1] INFO  (support.context.CacheManager) Registering cache 'BusinessObjectInfoCache'
    SYSUSER - 263293-41-1 2012-07-10 11:08:25,859 [http-6700-2] ERROR (api.service.ServiceExecutionPolicy) Rollback: Read failed
    java.lang.NumberFormatException: Not a number: 1,641.00
         at com.ibm.icu.math.BigDecimal.bad(BigDecimal.java:3894)
    Thank you very much
    Kins

    >
    apps itself has no problem.
    >
    I have to disagree. If the application is to throw an exception and the journal contains her not the information necessary for you tell what is causing the exception, and then the application has ALSO a problem.

    java.lang.NumberFormatException: Not a number: 1,641.00
         at com.ibm.icu.math.BigDecimal.bad(BigDecimal.java:3894)
    

    Add additional record to the app to catch the exception and discover the connection, the request and the record that causes the error.

    Troubleshoot, to gather information when the problem actually occurs and work your way backwards.

    If you say that the problem did not exist before the developer made the change then prove it by running the old code against the same data. If it works then the problem is with the change that made the developer.

  • How to find the tables that are used in a procedure

    Hello
    I need to write a SQL to find (user_source) procedures or triggers (from user_triggers), whose code contains the registerd tables in a table X.
    In other words, I have a table X with files having a column containing tables. I want to write a SQL to obtain these (proc, package and triggers) container objects or use the tables inside
    Can you help me?
    Thank you!

    Mark1970 wrote:
    Hello
    I need to write a SQL to find (user_source) procedures or triggers (from user_triggers), whose code contains the registerd tables in a table X.
    In other words, I have a table X with files having a column containing tables. I want to write a SQL to obtain these (proc, package and triggers) container objects or use the tables inside
    Can you help me?
    Thank you!

    I don't know if I understand your problem, but have you had a glance at the data dictionary views USER_DEPENDENCIES or ALL_DEPENDENCIES?

    It has classified hard dependencies of objects.
    If a table is used directly (not in dynamic SQL code in a string) in an object PL/SQL, the dependency is available in the stated points of view.

  • How to find a table in all schemas and truncation

    Hello

    I am creating a procedure to perform the next task.

    (1) lists all create users
    (2) for each user found, look for a table called "lsw_bpd_instance_documents" on the schema of the user
    (3) if the table is found, her truncate.

    For this work, I have the following code, but it's not right :(
    Select it to found the users work well, but I don't know if I used the right method to store the result inside the CURSOR.
    I'm not sure if I use the right way to perform a "foreach" CURSOR content and on my way to build my truncated sentence... Can I just concatenate strings as I do below in the call for the IMMEDIATE DELIVERY?
    DECLARE
      CURSOR all_users IS select lower(username) as username from dba_users where user_id between 87 and 1000;
      check_table INTEGER;
    BEGIN
       FOR selected_user IN all_users LOOP
          select count(*) INTO check_table from dba_tables where owner = UPPER(selected_user.username) and table_name = 'LSW_BPD_INSTANCE_DOCUMENTS';
          --if table exists
          IF ( check_table > 0 )
          THEN
            EXECUTE IMMEDIATE 'truncate ' || selected_user.username || '.LSW_BPD_INSTANCE_DOCUMENTS';
          END IF;
       END LOOP;
    END;
    I appreciate all the help

    Really not sure why you are too complicated. This is all that is needed:

    BEGIN
       FOR r in ( select owner from dba_tables
                  where table_name = 'LSW_BPD_INSTANCE_DOCUMENTS' )
       LOOP
            EXECUTE IMMEDIATE 'truncate table ' || r.owner || '.LSW_BPD_INSTANCE_DOCUMENTS';
       END LOOP;
    END;
    /
    

    Note that I corrected the syntax error in your dynamic SQL statement. TRUNCATE is DDL, so it requires the keyword TABLE.

    Cheers, APC

  • How to find the table - is - this normal table or external table?

    Hello


    Regardless of DML operations in normal and reading tables only access tables outside, is there a way to find the specified table is regular table or the external table?

    Thanks in advance.

    Suresh.

    One possibility would be to query the ALL_EXTERNAL_TABLES data dictionary view. If there is a line in ALL_EXTERNAL_TABLES to the table, wondering (I assume you know that you query a table, a view, or a synonym), it is an external table. Otherwise, it's an ordinary table.

    Justin

  • How to find the sizes of all schema objects

    Hi guru,.

    I have a 10.2.0.4 database on the Windows platform.

    How can I calculate the size of a particular schema objects (i.e.table, index, Mviews etc.)?

    Is any dynamic script available for the same thing?


    Thanks in advance.

    Why do you want to include nom_segment in the State? You need size of all objects in the schema.
    simply question query provided that WHEN the OWNER = "tbl";
    If you need that in Excel, you can use SQL Developer or any available for Oracle GUI tools.

    Murali Mohan

  • How to create the table in another schema of database even

    Hello..

    I have a database DB1
    and 2 patterns / users in this...
    Usr1 and Usr2...

    I created a TEMP Usr1 schema table... and created

    Then tried the following declaration in the schema Usr2...

    CREATE TABLE TEMP AS SELECT * FROM Usr1.TEMP;

    Then it is in error that...
    : 00942 TABLE OR VIEW DOES NOT EXIST...

    What is the reason for this...

    Thank you

    You must make this grant on any new table, you create in usr1 and you want to use in the usr2 schema.

    Its not desirable, but you can give system privileges

    grant select to usr2.

    USR2 can select on any table.

  • How to find a table behind the OA framework page

    Hello
    can any body tell me how to find the tables behind any page of OA framework in particular for screens of ALS.
    Concerning

    On the tab of the page-->, click on expand all link.

    Here you can find the area of the table and the VO rasthaus to it. When you've got the name of the View object.

    Then click on details of the Business component references-->

    In the object section View find your viewObject and click on it. Here you can find the application attached to it.

    Thank you
    -Anil

  • How to clear the table dhcp clients

    Does anyone know how to clear the Table of Clients DHCP?

    I have a WRV54G.

    Concerning

    I understand this is a very old post, but since I found it when I was looking for the same answer in 2009, I thought go ahead and give my $.02 worth.

    I have a different router, so it may not be present in your.

    I use a version of the firmware WRT54GLwith 4.30.7 and finally found on the status under "Local network" page a link to the DHCP table. You can click on that and delete existing IP addresses.

  • How to find a table, using the name of the column in the database schema

    Dear all,

    Please help me on

    using the name of the column, how to find a table name in the database schema.

    Thanks in advance

    Hello

    You can query the data dictionary views all_tab_columns and user_tab_columns.
    For example, to find the tables in the scott schema have called deptno columns:

    SELECT  table_name
    FROM    all_tab_columns
    WHERE   owner           = 'SCOTT'
    AND     column_name     = 'DEPTNO';
    

    Remember that anything inside quotes is case-sensitive.

    The all_tab_columns view has one row for each column in each table (or view) that you have the privileges to use.
    The user_tab_columns view is a subset of all_tab_columns, containing only your own tables (and views).

  • How to find the value max and min for each column in a table 2d?

    How to find the value max and min for each column in a table 2d?

    For example, in the table max/min for the first three columns would be 45/23, 14/10, 80/67.

    Thank you

    Chuck,

    With color on your bars, you should have enough experience to understand this.

    You're a loop in the table already.  Now you just need a function like table Max and min. loop.  And you may need to transpose the table 2D.

  • How to find the primary key columns in the tables in MS Access using SQL queries

    How to find the primary key columns in the tables in MS Access using SQL queries

    Hello

    This is the forum for Windows Vista programs related issues.

    For better assistance, please try instead the Forums in SQL Server .

    Thank you! Vincenzo Di Russo - Microsoft MVP Windows Internet Explorer, Windows Desktop Experience & security - since 2003. ~ ~ ~ My MVP profile: https://mvp.support.microsoft.com/profile/Vincenzo

  • How can I use statistics for all the tables in a schema in SQL Developer? and how long will it take on average?

    Hello

    How can I use statistics for all the tables in a schema in SQL Developer? and how long will it take on average?

    Thank you

    Jay.

    Select the connection and right-click on it and select schema statistics collection

  • How to find the size of the table?

    Hi all

    Can anyone suggest how to find the size of the table? I had a few (15272 selected lines) on the name of "CMPT_" How can I check only 'CMPT_' size tables?





    Please someone help give the SQL query to run.


    Thanks in advance.


    Vincent

    madala03 wrote:

    Hi thanks for the reply

    I'm out like below

    SUM(BYTES/1024/1024)

    --------------------

    25383.25

    But how to check all the name of tables CMPT and their sizes?

    Select nom_segment, dba_Segments sum(bytes/1024/1024) where nom_segment like ' % CMPT GROUP BY nom_segment;

Maybe you are looking for