database queries of list

Is there a function (similar to the dB list tables) that lists the possible database queries?

Thank you!

Table names is a separate list such as defined by the database, queries can have a large number of permutations.  What you trying to accomplish?  Is there a specific query you need?

Tags: NI Software

Similar Questions

  • How can I make effective * Dynamics * xml database queries?

    How can I make queries efficient dynamic xml based?

    Oracle database 11 GR 1 version material, I tried it on 11 GR 2 as well.

    I have a requirement where I went from 10 search gui settings. All parameters are optional, and the user is allowed to enter all the details in the fields in any combination they like. At least one parameter will be filled more every 10.

    I have millions of records in the table and have created a xmlIndex on the xmlType column.

    I dynamically build the necessary xQuery of the arguments and use bind variables, so there is only a hard analysis for each "type" of the request.

    But when I try this I get an error:

    ORA-32512: external 'xquery variable' type is unknown


    So, how to create a query based dynamic xml?

    I think that it is possible that I can create variable bind in sql * more and run a SELECT statement, modify the content of the variable and re - run the query and it performs as I expect, but I can't replicate this functionality within pl/sql.

    I tried to do it using the dbms_sql package I shall not know the number of bind to the run-time variables. When I try this, I get the error message:

    ORA-32512: external 'xquery variable' type is unknown

    If this isn't the right way, how to create dynamic xml queries (when running) founded, using bind variables within the database?

    I created a minimal example to demonstrate:
    CREATE TABLE xmlTest
    (
            id      NUMBER(10,0) PRIMARY KEY,
            theXml  xmlType
    )
    /
    
    DECLARE
            l_sql VARCHAR2(100) := q'<SELECT id FROM xmlTest WHERE xmlExists ('/a[b=$b]' PASSING theXml, :b as "b")>';
            l_b   VARCHAR2(10)  := '1';
    
            l_curId INTEGER;
    BEGIN
            l_curId := dbms_sql.open_cursor;
    
            dbms_sql.parse (c             => l_curId,
                            statement     => l_sql,
                            language_flag => dbms_sql.native);
    
            dbms_sql.bind_variable (c     => l_curId,
                                    name  => 'b',
                                    value => l_b);
    END;
    /
    When I run the present, I get:
    DECLARE
    *
    ERROR at line 1:
    ORA-32512: type 'xquery external variable' is unknown
    ORA-06512: at "SYS.DBMS_SQL", line 1053
    ORA-06512: at line 9
    Line 9 is the declaration of dbms_sql.parse.

    Thank you very much
    Gary.

    Published by: GPN & amp; GT; on February 18, 2011 10:57

    Hello

    Try with an explicit cast of the binding variable:

    SQL> CREATE TABLE xmlTest
      2  (
      3    id      NUMBER(10,0) PRIMARY KEY,
      4    theXml  xmlType
      5  )
      6  /
    
    Table created
    
    SQL> insert into xmltest values(1, xmltype('1'));
    
    1 row inserted
    
    SQL> insert into xmltest values(2, xmltype('2'));
    
    1 row inserted
    
    SQL> set serveroutput on
    SQL>
    SQL> DECLARE
      2
      3    l_sql   VARCHAR2(200) :=
      4    q'