How to list the columns for a view

Dear experts

I know how to list the columns in a table. This easy by querying the data USER_TAB_COLUMNS dictionary.

But my problem is how to issue a query that returns the columns for a view?

Thanks in advance

USER_TAB_COLUMNS stores the metadata for both views.

Select * from user_tab_columns where table_name = 'YOUR_VIEW_NAME"of order of column_id.    -Replace with your view_name (mandatory course)

See you soon,.

Manik.

Tags: Database

Similar Questions

  • How to display the ddl for a view

    In oracle 11g how can I write a query which will display a view initial create MATERIALIZED view?

    I know that you can click on the SQL tab in sql developer, but how can I do the same thing with a query?

    Hello

    996454 wrote:

    In oracle 11g how can I write a query which will display a view initial create MATERIALIZED view?

    I know that you can click on the SQL tab in sql developer, but how can I do the same thing with a query?

    Yes, the code is in the data dictionary:

    -In SQL * Plus, do this first:

    VALUE LONG 8000

    SELECT text

    From user_views

    WHERE view_name = 'MY_VIEW '.

    ;

    You can also use dbms_metadata for getting this.

    What do you mean by "seen statemnt to create initial display ?  If you create a view and then do a CREATE or REPLACE VIEW statement, then the initial definition is lost. only the most recent is kept in user_views.

  • How to list the permanent for 1 datacenter name

    Tried to change the code of LucD but nothing helps:

    $report = @)

    $inherited = $true

    $authMgr = get-View Manager

    $rôles = @ {}

    {foreach ($role in $authMgr.RoleList)}

    $rôles [http://$role.RoleId|http://$role.RoleId] = $role. Name

    }

    Get-data center-name {"Nom_cd"

    $exist = get-VIObjectByVIView - MORef $_. MoRef - ErrorAction SilentlyContinue

    If ($exist - not $null) {}

    $current = get-view $_. Parent

    $path = $_. Name

    {}

    $parent = $current

    if($parent.) Name - only "vm") {$path = $parent. {Name + "\" + $path}

    $current is get-view $current. Parent

    } While ($current. Parent - no $null)

    $permissions = $authMgr.RetrieveEntityPermissions ($_.) MoRef, $inherited)

    if($Permissions.) Length - not 0) {}

    {foreach ($perm in $permissions)

    $row = "" | Select Name, Path, Principal, group, role, defined

    $row. Name = $_. Name

    $row. Path = $path

    $row. Main = $perm. Main

    $row. Group = $perm. Group

                        $row. Role = $rôles [http://$perm.RoleId|http://$perm.RoleId]

    $row. Defuiis = (Get-View-Id $perm. Entity). Name

    $report += $row

    }

    }

    else {}

    $row = "" | Select Name, Path, main, group

    $row. Name = $_. Name

    $row. Path = $path

    $report += $row

    }

    }

    }

    Works for me.

    Where to do you run? (PowerCLI invites, PowerGui, Vesi...)

  • How to set the content of the column for lines of automatic separation

    Hello guys,.

    I have a problem with the column width and the content of column in a standard report. In the report are hugh entries that are not interrupted by a space character. I put my column width to a special value by usingen "style css: display block; Width: 300px; ». Now the problem is that some of the entries in the column with a longer width that the column width is set. Then they overlock the entries in the column next to them.

    My question is: How to set the column lines of automatic content break after a certain number of characters?

    After searching for a couple of websites and discussion thread, I found maybe a reference to the solution. I hope that it helps you to give me an answer.

    A4 FORMAT LAST_NAME COLUMN
    */*

    concerning

    wderr

    Wderr,

    It is more a matter of HTML as a matter of APEX... You can start by looking here:
    http://www.456bereastreet.com/archive/200704/how_to_prevent_html_tables_from_becoming_too_wide/

    Kind regards
    Dan

    Blog: http://DanielMcGhan.us/
    Work: http://SkillBuilders.com/

  • How to change the caption for the entire Section of column in the PivotTable dynamic

    Hi Experts,

    I'm trying to apply a Total in the Section of the column in PivotTable view, but not able to rename the topic as Total instead it always shows the name of the column that is only in the criteria.

    Concerning

    Hello

    1st solution is:

    ! http://i852.Photobucket.com/albums/ab83/kishorg86/MeasureLabels.jpg!

    Click on Format labels > caption and change... Here I use measure total Labels instead of the columns
    He disappears?

    2nd solution is:

    ! http://i852.Photobucket.com/albums/ab83/kishorg86/MeasureNameChange.jpg!

    Here without applying the totals on the labels of the measure, I kept the totals it is on columns... but changed the name of measure... as you can see in the picture... so that total name takes the same name...
    But use this setting when you show no name of the measure in report...

  • How to disable the built-in PDF Viewer and use another Viewer at all times?

    How to disable the built-in PDF Viewer and use Adobe Reader to view the PDF files, without having to set this preference, whenever I open Firefox? The default setting to "Use Adobe Acrobat (in Firefox)". Thank you.

    It's strange. The integrated Viewer - Viewer by default - is described by the expression 'Preview in Firefox' and you will have changed to "Use Adobe Acrobat (in Firefox)".

    Well... you or an add-on or another program on your system must be changed.

    What happens if you disable the Adobe Acrobat plugin (not the extension to create a PDF file, leave it active). Here's how you can try this:

    Open the page modules using either:

    • CTRL + SHIFT + a
    • "3-bar" menu button (or tools) > Add-ons

    In the left column, click on Plugins. On the right side, find "Adobe Acrobat" and change the permission 'never enable '.

    Then in the Options page, Applications Panel, change your preference for "Portable Document Format (PDF)" to "Always ask" so you get the dialog box to download instead of the PDF, open in a tab.

    It sticks?

  • Office jet Pro 8600: how to change the folder for the scans on my Apple?

    Hi, I want to know how to change the destination for my scans folder when I scan from the printer.  Currently, the scans go to "documents", and I want him to be in a business case.  Clues?  I tried to watch some instructions on the previous posts, but it seems that they are for windows.

    Thanks for the help!

    Hi @jgossc,

    I'd be happy to help you change your scan destination. I understand that when you scan your Officejet Pro 8600 to your Mac, the file analysis is currently underway to your documents and want to let them instead to a business case.

    To change the destination please follow the steps below and let me know the results of your efforts:

    • Open HP utility
    • Select Scan to the computer
    • Click Scan tasks to change
    • Choose a shortcut to scan
    • Select Edition
    • In the options listed here, you should see scan destination

    If this resolves the issue, please click Accept as Solution button below; If not, let me know and I will do everything I can to help. Thank you.

  • How to set the color for background ChoiceBox point to ChoiceBox with css?

    How to set the color for background ChoiceBox point to ChoiceBox with css?

    I need to change the backgound color list items.

    I tried with the following code, but it's not help to:

    {.context-menu .choice-box

    -fx-background-color: Red;

    }

    .choice-box .menu-item {}

    -fx-background-color: red;

    }

    In Java 8, either of your selectors should work.

    In Java 7 (JavaFX 2.2), you need of the following workaround:

    #choice-box-menu-item {
         -fx-background-color: red ;
    }
    
  • How to get the date for the first Monday of each month

    Dear members,

    How to get the date for the first Monday of each month.

    I wrote the following code

    SELECT decode (to_char (trunc (sysdate + 30, 'MM'), 'DAY'), 'MONDAY', trunc (sysdate + 30, 'MM'), NEXT_DAY (trunc (sysdate + 30, 'MM'), "LUN")) FROM DUAL

    But he looks at complex bith.

    Abhishek

    Published by: 9999999 on 8 March 2013 04:30

    Use the IW format - it will make independent NLS solution. And all you need is truncated 7th day of each month using IW:

    select  sysdate current_date,
            trunc(trunc(sysdate,'mm') + 6,'iw') first_monday_the_month
      from  dual
    /
    
    CURRENT_D FIRST_MON
    --------- ---------
    08-MAR-13 04-MAR-13
    
    SQL> 
    

    Here is the list of the first Monday of the month of this year:

    with t as(
              select  add_months(date '2013-1-1',level-1) dt
                from  dual
                connect by level <= 12
             )
    select  dt first_of_the_month,
            trunc(dt + 6,'iw') first_monday_the_month
      from  t
    /
    
    FIRST_OF_ FIRST_MON
    --------- ---------
    01-JAN-13 07-JAN-13
    01-FEB-13 04-FEB-13
    01-MAR-13 04-MAR-13
    01-APR-13 01-APR-13
    01-MAY-13 06-MAY-13
    01-JUN-13 03-JUN-13
    01-JUL-13 01-JUL-13
    01-AUG-13 05-AUG-13
    01-SEP-13 02-SEP-13
    01-OCT-13 07-OCT-13
    01-NOV-13 04-NOV-13
    
    FIRST_OF_ FIRST_MON
    --------- ---------
    01-DEC-13 02-DEC-13
    
    12 rows selected.
    
    SQL> 
    

    SY.

  • How to get the smartlist for calcscript text

    Hello

    How to get the smartlist for hyperion planning 11.1.1.3 calcscript and calcscript tx example text

    Rgds

    Uka fp

    Published by: uka firman on November 25, 2010 10:35

    I think that ENUMTEXT is purely essbase and MDX to retrieve the value of text against the essbase text measures that are not the same as planning for the smart lists.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • How to install the patch for the security hole last QT process running on a Dell with Windows 7 (Windows 10 upgrade) laptop? I got a message from my program called Belarc that the patch is missing on this device. Thank you

    How to install the patch for QuickTime Pro for Windows 7 on a Dell laptop... I got an alert through a program which I run from time to time (Belarc) and it says that there was a security breach detected by Apple (or one of its vendors, who manages the security of the operating system such as Cisco) during December 2015.

    Please notify.  Thanks in advance for your guidance pertaining to my question.

    Download QuickTime for Windows - Apple 7.7.9

    Apple ends development of QuickTime Player 7 for Mac and Windows operating system, so don't expect much more beyond this last version.

    The installation shows are supported for Windows 7 and lower, so I don't know what to expect on Windows 10.

  • How to disable the option for children to receive messages from my iPhone on their iPhones?

    How to disable the option for my children to receive my iPhone imesages on their iPhones?

    Do not share account iCloud with them. iCloud accounts are not meant to be shared.

  • How to get the manual for Satellite Pro 4200?

    How to get the manual for Pro 4200. I have download olm_up and setup.exe (72 kt) of http://eu.computers-toshiba-europe.com?.

    Hello

    Please visit this link:
    http://EU.computers.Toshiba-Europe.com/cgi-bin/ToshibaCSG/download_manuals.jsp

    I m you will find a good manual of your device.

    Good bye

  • How to connect the keyboard for apple tv wireless?

    How to connect the keyboard for apple tv wireless?

    If you mean the 4th generation new Apple Tv, you cannot currently. It does not support keyboards at this time.

    If you mean the 3rd generation Apple Tv:

    Use a keyboard Apple Wireless with your Apple TV (2nd or 3rd generation) - Apple supported

  • I know how to force the Spotlight for re - index a drive or a folder. But how then do I mail?

    I know how to force the Spotlight for re - index a drive or a folder.

    But how then do I mail? I drag this file to the window?

    Thank you.

    Try re-indexing of mailboxes mailbox. This can take some time if you have a lot of mail.

    Reindex messages           For El Capitan, try looking in V3.

    Reindex messages (2)        See post by Linc Davis

Maybe you are looking for

  • 7.26 Skype (328) continues to ask to update - installation is not working

    Whenever I start V.7.26 (328) continues to ask to run the update even on the last OSX. Other Mac users have the same problem for OSX Elcapitan? It seems that if the update does not install on subsequent reboot...

  • Allowed to 5 GHz, 5 GHz transmit do not - WRT1200ac

    I had the WRT1200AC for a little while and just noticed that the 5 GHz band does not transmit when I looked into why my wireless internet speed was low.  I checked my router settings, bands of 2.4 and 5 Ghz are enabled in the router configuration.  I

  • scroll remains locked for streaming lists

    emails and favourite lists continuously scrolling

  • Not be able to buy CC 2015

    I tried to buy a bundle adobe creative cloud education and every time there is the following problem: ' There was a problem processing your order, please contact our Service team customer on 0124 4003810 or 000 800 440 1751 for assistance '.Guys plea

  • Configuration of Digital Signature of small business

    We have about 125 employees who have digital signatures created using Acrobat 9 and X. is it possible to import all certificates of employee (public keys) at the same time in Acrobat so we can validate signatures when the signed PDF is opened?