How to get the create view sql statement

I have a technical problem

There is a view in the database, for example "topstudentsview" and sql statement is ' select * student where scores > 90;

My question is how to get the sql statement of the view. I want to get the sql statement in the topstudentsview

Is the equivalent in MS Sql

sp_helptext 'topstudentsview '.

How in Oracle?

Thank you

user10182401 wrote:
My question is how to get the sql statement of the view.

Simple answer: use a tool. Almost every development tool will give you an option for this requirement.

In Oracle SQL Developer (free), it's as simple as:

Connect to the database with the user and click on "views".
Select the appropriate view, and then click the SQL tab.

Tags: Database

Similar Questions

  • How to get the hang of sql

    Hi all

    I can view the blocked sql using sql_txt to this:

    Select distinct s1.username | » @'|| S1.machine | "(INST =' | s1.inst_id |) ' SID = ' | S1.SID |')

    blocks ' | S2. UserName | '@' || S2.machine | ' (INST =' | s1.inst_id |') SID =' | S2.SID |') '

    LIKE blocking_status, s2.program, s3.sql_id, s3.sql_text gv$ lock l1, gv$ session s1, gv$ lock l2, gv$ session s2, s3 in v$ sql

    where s1.sid = l1.sid

    and s2.sid = l2.sid

    and l1.block = 1

    and l2.request > 0

    and l1.id1 = l2.id1

    and l2.id2 = l2.id2

    and s2.sql_id = s3.sql_id;

    But I can view the blocker sql

    Can you help me how to get the sql_txt hang?

    I try to review the program that is:

    Select s1.sid, s1.serial #, s1.inst_id, s1. SQL_ID gv$ lock l1, gv$ session s1, gv$ lock l2, gv$ session s2, s3 in v$ sql

    where s1.sid = l1.sid

    and s2.sid = l2.sid

    and l1.block = 1

    and l2.request > 0

    and l1.id1 = l2.id1

    and l2.id2 = l2.id2

    and s2.sql_id = s3.sql_id;

    INST_ID SELECT SQL_ID SID, SERIAL #.

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

    1-148-88

    But s1.sql_id is null. where do I get it?

    Thank you

    It occurred in the past.  You can't find it in the past.

    If you enable this, you might find the SQL code in the future.

    Hemant K Collette

  • How to get the list view in iTunes 12.4.3 for Windows

    Guys, I'm LOSING MY MIND. I had to re - download iTunes (which I refused to update in eternity because I know of updated versions are generally never good), and this new Interface is making me remove my hair and cry. Not only is it completely intuitive, but it makes it incredibly difficult to navigate.

    I'm seeing all my music in classic list view, which I know he can do. When I first loaded it upward, she appeared in list view, but the time that I started clicking around, it became this heavy nightmare of the image. Every article I've read has a UI that I don't HAVE, where there is a drop-down list of some sort. Does anyone know how? I have attached a screenshot. BTW, that blue icon that you THINK would be seen list said just what is the next song. Complete waste of space. Jesus, just put it in a status bar, or scroll across the top.

    FYI: the only changes that I made in the preferences has been disable anything itunes store or apple related radio because literally ALL itunes became ads.

    How can I view my mode music list in iTunes 12.4?

    In the drop-down list, select music. Once in the music, in the sidebar, select the songs and you should be intraditional list view.

  • How to get the script to a table or view in SQL Developer?

    Dear friends/expert,

    Could you tell me how to get the script from a view or a table easily in SQL Developer as pressing F4 in TOAD?

    I found that I can press SHIFT + F4 to view in SQL Developer and get the script of the view in the Details tab. But how to move the script to the SQL worksheet to change? It is very easy to do in TOAD.

    And I have not found a way to get the script for a table up to now. Is it possible to do?

    Thanks in advance.

    Best regards
    Ning

    There are people a lot better out there to answer on this point than I am - but here's how I do it.

    I'm just in the browser/browser for interest table, choose the script on the right side tab (which shows all the SQL for the table) and then cut and paste what I want or need in my editor window.

  • How to get the database create 9iR2 db statement?

    Friends,

    OS: RHEL 3
    DB: Oracle 9iR2

    under sql will be the creation of tablespace.
    select dbms_metadata.get_ddl('TABLESPACE','TEMP') from dual;
    like the above, I want to get the creation of database statement

    is it possible using dbms_metadata or any other means?

    Thank you

    There were a few scripts or references to scripts to generate create statements of database in the past.

    I thought that I had actually downloaded one, but I don't know what I did with it. I however did a quick search and found the following:

    Of comp.databases.oracle.server. The last entry for the thread refer to such a tool are available on the web pages of the author.

    http://groups.Google.com/group/comp.databases.Oracle.Server/browse_frm/thread/a1457c459be3479a/63bcc6008e8273b7?hl=en&lnk=St&q=#63bcc6008e8273b7

    You can use the Oracle DBCA utility for fine screens to create a database and output, then save the scripts. You can now take those scripts and change the and adding additional orders for your goal.

    HTH - Mark D Powell.

  • How to get the parameter values of a step type custom when I create file and adding a type of step seq

    I use lv 8.5 and teststand 4.0.

    I did a step type custom and recorded at the MyTypes.ini in pallets of type.

    I specified a default module by opening the properties of the custom step of *.ini type window, then I put some values of the parameters.

    T1) when I open teststand and I add the custom step type manaully in seq file, the labview module parameter values are represented.

    But, if to use file (create and add support prototype stage), the labview module parameter values has the default value.

    Using joint file, how to get the setting custom step type values I put in *.ini?

    Q2) each type of step are automatically by name through the use of LoadTypePaletteFilesEx. When I open teststand and I add the custom step type manaully in seq file, the module is loaded automatically. Inside the attachment, I use a prototype of charge and a fixed path where the module labview is to load the labview module.

    Can I load module automatically without using a prototype of charge or how can I get a dynamic path of type step?

    I solved Q1 for myself by using the mapping tab of the parameter within the configuration to the default module window.

    Everyone knows Q2?

    Thank you.

  • How to get the angles of view (horizontal and vertical) camera?

    How to get the angles of view (horizontal and vertical) camera?

    The horizontal and vertical field of VIEW properties are available with the camera_get_physical_property() function.

    Who is using the C API of the photo. I don't think that you can access by using the control of the camera of Cascades.

  • How to get the value of a column in sql query?

    Hi, anyone knows how to get the value of a column in sql query?

    Here is my code, the value must be 1350079224397 in my PB, but I get 0

    QString query ("SELECT version FROM db_version");

    QVariant result = sda.execute (query);
    QVariantMap versionMap = result.toList () such () .toMap ();
    If (! versionMap.IsEmpty ())
    {
    qDebug()<"Version: "=""><>
    }

    OK, I have the solution

    QString query ("SELECT version as version FROM db_version");

  • How to get the full DDL using SQL developer

    Hi all

    I need get the full DDL a table with the details of the index partitions, synonyms, comments (if any) and give information if given any role, use SQL developer. We can achieve the same thing using shortcut F4 on name of the table into a frog, then selecting tab DDL. Is it possible to get the same in SQL Developer also?


    Also how I see existing procedures using SQL developer?  A toad, we were able to achieve using the schema browser.

    Hi all

    I reached by - right click on connection - diagram open... and any browser will even...

  • How to get the IP or hostname of the computer that the user is connected to his office with view 4.5

    How to get the IP or hostname of the computer that the user is connected to his office with view 4.5

    Is this even possible and server display does not store this information?

    Best regards, Najtssob

    This information is stored in the registry of the virtual office. For more information, see this page: use the VMware View Client information.

  • How to get the ddl of many paintings in a statement

    Hi all

    I have a scheme. It has 150 tables. I chose dbms_metadata.get_ddl ('TABLE', 'TABLE_NAME', 'SCHEMA') of double;
    It worked for me, but I have 150 paintings. There is a lot of time to do.

    Is there a faster way to do?

    Thank you!

    Dan.

    Duplicate - already replied to How to get the ddl from several tables in a statement

  • How to get the current position from the point of view

    can I know how to get the current position of the view?

    Edited by: anIdiot July 27, 2011 22:01

    1 - get belvedere of the universe:

    u = new SimpleUniverse (canvas3D);
    ViewPlat = u.getViewingPlatform (); view of the universe

    definition viewplat: ViewingPlatform ViewPlat;

    2 - get look a transform of the platform in an existing Transform3D

    ViewPlat.getViewPlatformTransform () .getTransform (t3d).

    3 - Look at the trandform: t3d.get (Quater1, vector1); orientation object Get and coords

    Kind regards.
    JFP

  • How to get the State of the button?

    I want to know how to get the State clicked the button? If it is clicked State or State clicked?

    For ex: I have the following code...

    {( < composants: IconButton id =»bold_btn"largeur =»22" icône =»@Embed('/assets/bold.png')"click ="onBoldClick ()"enabled =" {}this.loadCompleted}"toggle ="true"/ >

    How to find if the "BOLD" button is checked or not?

    this.bold_btn. ???

    Please mark

  • How to get the connection ID in SQL?

    Hello
    How to get login Id in sql?
    such as "select * from table1 where userlogined =: {$$loginid}"?

    Best regards

    Jason Gao

    If you want to get the user name for the user, you can use the variable: xdo_user_name.
    Select: xdo_user_name of the double

    Also check this out to learn how to use it to filter the data for a specific user:
    http://blogs.Oracle.com/XmlPublisher/2007/04/10/

    Thank you!

  • How to get the values of page jspx (view layer) to the custom method defined in AM

    Hello

    I have 1 text field and 1 submit to homepage.jspx. When I click the button submit, it will call the custom method defined in the 'Module of the Application' java class (ApplicationModuleImpl.java). Can I know how to get the value of this text field in this custom method.

    I used the getter and setter method, however it didn't work as it is defining the value correctly, but get method returns null. Its not allowing to use FacesContext. Could someone please tell me how to get the value of the text field to this custom method (that is, using ADFContext,... something like that)

    Thanks in advance

    User,
    you have mixed up something here. Bean (as you did) cannot use the module of the application. They belong to different layers.
    I suggest you to look at some first tutorials (http://docs.oracle.com/cd/E18941_01/tutorials/toc.htm) or watch the developer guide http://docs.oracle.com/cd/E16162_01/web.1112/e16182/toc.htm and take a look at some of the videos http://www.oracle.com/technetwork/developer-tools/adf/learnmore/adfinsider-093342.html

    Timo

Maybe you are looking for

  • can someone help with music purchases

    I bought two albums by the same artist and 5 minutes later found the same albums over a collection. Is it possible to swap (cost more money if nobody will miss out)

  • My Macbook Pro keeps freezing for short periods

    Hello A new problem started with my Macbook pro in recent weeks. Initially, it was rare, but now he continues to be all a few minutes (it happened as I type this). What is happening is that my current application freezes for a few seconds, then retur

  • CANdo dll driver

    Hello NOR forum, I'm doing a driver for CANdo http://www.canAnalyser.co.UK/candosdk.html I tried to make the clusters that are typedef, when I run the present I get the value of back 4 which means that a device of CANdo is not when I insert it in the

  • Recovery CD does not work

    Hello. I have a laptop of Pavilion dv6700 (service tag dv6838nr). He is running to Win 64-bit Viste. I am prepairing sell ot the computer by "wiping" the hard drive (replace all personal/confidential information on the disk), and by using the recover

  • Wireless printer goes offline

    I have windows XP and a wireless Epson printer which worked for about 4 months.Lately the printer when I power the PC goes offline and I can't get it back on line unless I have reinstall the driver.I can turn off the printer on and outside, and it wi