HOW TO USE CLOB IN FROM CLAUSE

Hello

I have a requirement to use a CLOB as one of the tables in a select statement. It works very well in XML report. I need to use it in the package and its throwing me name error table not valid.

Here's a sample query that I try to use

c_CLOB CLOB.

c_clob: = select col1, col2, col3,...;

procedure generate_data

is

cursor c_data

Select t1.colA, t2colB... etc.

CL. Col1, cl.col2,... etc.

FROM table1 t1,

tabl2 t2,

c_clob cl

where cl.col1 = t1.colc

and cl.col2 = t2.colD

.....

Any help / suggestions on this is much appreciated. Thanks in advance.

A clob is not an array, it is a data type for the column, variable, or parameter.

If you want to use to define SQL and fetch it, you can use dynamic SQL or SYS_REFCURSOR.  Here is an example of the latter:

declare

CLOB c_CLOB;

News sys_refcursor;

whole vcol1;

whole vcol2;

Start

c_clob: = ' select 1 as col1, col2 from union double every 2

Select col1, col2 from 1 dual 2';

Open the heart of c_clob;

loop

extract the heart in vcol1 vcol2;

When the output cur % NOTFOUND;

DBMS_OUTPUT. Put_line (' vcol1 = ' | vcol1 |', vcol2 = ' | vcol2);

end loop;

close cur;

end;

Output of DBMS:

vcol1 = 1, vcol2 = 2

vcol1 = 1, vcol2 = 2

Tags: Database

Similar Questions

  • How to use the adapter from the wall with my Mac Pro laptop?

    How to use the adapter from the wall with my Mac Pro laptop?

    The AC wall connector is not compatible with the outlet on the MBP?  As the MBP charger will work from 100v to 240v, a transformer is necessary.  You need a converter that connects to the power outlet home and is compatible with your MBP.  You can buy the Apple travel kit:

    http://www.Apple.com/shop/product/MD837AM/A/Apple-world-travel-adapter-Kit

    Or you can use a single specific converter for the geographical area:

    http://www.Amazon.com/orei-grounded-universal-adapter-Singapore/DP/B004SCSV2U/re f = sr_1_4? ie = UTF8 & qid = 1460735377 & sr = 8-4 & keywords = us + in + uk + power + adapter

    (it is a UK USA example)

    Or you can get the converter that adapts the charger directly:

    http://www.Amazon.com/HIOTECH%C2%AE-extension-charger-connecting-specification/d p/B00MA48JZW/ref = sr_1_3? ie = UTF8 & qid = 1460735486 & sr = 8-3 & keywords = us + in + uk + power + ad aptor + apple + charger + cord

    (again, this is for a UK plug.)

    Ciao.

  • How to use FNDLOAD emigrated from 11.5.9 to 12.1.1

    Hi all.

    How to use FNDLOAD emigrated from 11.5.9 to 12.1.1

    1. can we use FNDLOAD in the version for users and migration of responsibilities.
    2. we can bring the menu using other means like fnd user package API or Dev team can deal with the matter.
    3 user password source migrated as a source to the target rather than force users to change their password at the first login.
    4 can we we move Menu users executing FNDLOAD with menu option more later once the migrated users. What I get now, of note are:
    -Migrate FND_USER
    -then their responsibility
    -then their Menus.
    5. all users must change their password at the first login and its default password will be eu1.

    Thanks in advance

    1. can we use FNDLOAD in the version for users and migration of responsibilities.

    If the table structures are different then you cannot use FNDLOAD (unless you update the ldt files before loading it on the target instance).

    2. we can bring the menu using other means like fnd user package API or Dev team can deal with the matter.

    What you mean? To migrate from the menus, you must use FNDLOAD (please consider my comment to point 1 above).

    3 user password source migrated as a source to the target rather than force users to change their password at the first login.

    If you use the FND_USER_PKG API, please see (users are not prompted to change their password when using Fnd_user_pkg. UpdateUser [344979.1 ID]).

    If you use FNDLOAD, please see (FNDLOAD can migrate accounts without forcing users to change their user passwords?) [ID] 376469.1).

    4 can we we move Menu users executing FNDLOAD with menu option more later once the migrated users. What I get now, of note are:
    -Migrate FND_USER
    -then their responsibility
    -then their Menus.

    If you need to assign responsibilities to users, migrate menus, then responsibilities and users.

    5. all users must change their password at the first login and its default password will be eu1.

    FNDLOAD can migrate user accounts without forcing users to change their password? [376469.1 ID]

    Thank you
    Hussein

  • How to use CLOB in OBIEE 11 g (11115) Reporting

    Hi all

    I have a CLOB object. I need to use it in the report.

    It comes only from the text. I challenged it in SPR as LONGVARCHAR or OBJECT, but it did not work.

    I tried to use evaluate with TO_CLOB but I am getting below error any time

    incompatible data types: expected - got CLOB call OCIStmtExecute OIC. [nQSError: 17010] Prepare the SQL statement failed.

    Please give me an idea how to use a CLOB column in the report.

    I see a rittmen blog that uses lookup, but I do not have this option.

    Please let me know what wrong I do.

    Thanks in advance.

    KN

    Thank you all for your suggestions.

    I raised a SR and learned to know that use of BLOB/CLOB/NCLOB directly in the report is set to 11.1.1.8 version.

    Oops, Yes, I have to wait then need to use the options proposed by srini/nanou.

    Thank you

    KN

  • How to use "the location in" Clause

    Hi all

    I have an example of how to update the slider, I need to change this cusror help for update & where clause currecnt... Here I use the same table for update
    CREATE OR REPLACE PROCEDURE sample_test
    AS
    
           v_name     VARCHAR2(240);
           V_number  VARCHAR2(30);
          v_address       VARCHAR2(50);
     
       CURSOR c1 is 
             SELECT  * FROM   Employees
                       where  Name is not Null;
                        
    BEGIN
    
    
    BEGIN
    
        for rec in c_ord_hdr
        loop
    
         BEGIN
          SELECT name
                 ,number
                 ,address          
            INTO  v_name,
                  V_number,
                  v_address             
            FROM yyyyy
           WHERE id = c1.id
         
         END;
        
          
           UPDATE Employees
            SET  name = V_name,
                 number = V_number,
                 address= v_address
          where  Name is not Null;
                     
        end loop;
        commit;
        
          
    END;
          
      END sample_test;
    Thanks in advance

    Not very well why you have so many BEGIN... END of the statements in your code. They are not necessary unless you're including exception handling.

    What is the kind of thing you're looking for?

    create or replace procedure sample_test as
      v_name     VARCHAR2(240);
      V_number  VARCHAR2(30);
      v_address       VARCHAR2(50);
    
      cursor c1 is
        select *
        from   Employees
        where  Name is not Null
        for update;
    begin
      for rec in c1
      loop
        select name
              ,number
              ,address
        into  v_name,
              V_number,
              v_address
        from  yyyyy
        where id = rec.id;
    
        update Employees
        set    name = V_name,
               number = V_number,
               address= v_address
        where  current of c1;
      end loop;
      commit;
    end sample_test;
    
  • How to use the project from first pro in SG?

    I can't put my project in grade CC speed

    How can I do?

    Please help me.

    If you are using the latest version of PrPro, 2015.3/build 10.3... even if they kept the 'extra' looking for the CC part number from 2015.2 to 2015.3, if you look at the version numbers, 2015.2 is a "9.x" version, and 2015.3 is a version "10.x.

    Essentially, for some reason, they kept the main 2015 'name' but put on what we expected all in 2016. This update 'dot' was actually a major or full-release upgrade. With the changes.

    And... it was decided somewhere... the Panel of Lumetri to PrPro 10.3 was sufficient for the ranking that someone has actually done in PrPro, they is no longer necessary to maintain the directly in the process of SpeedGrade or "Direct link". As they have said their internal 'number' did not show a lot of people using the process to link Direct to SpeedGrade. If you go to the forum of SpeedGrade, there is a thread about it from this view instant 10 126 and several pages of posts.

    So... you can have the two 2015.3 AND 2015.2 'live' on the same machine, as they are completely different versions. In 2015.2 you can always Di - L on SpeedGrade. But you can't 2015.3.

    There is a thread on the forum of SpeedGrade on a workaround or "hack" one of the users posted, that allow to take a 2015.3 project and change the project on a single row header so that you can take the project open in Sg 2015. It has been tested on Mac (the OP is a Mac person) and on the PC by myself and a few other people.

    While I have not heard of anyone having problems with a project worked through this process, it IS NOT OFFICIALLY SANCTIONED. I've used it, as others... but ONLY after making a backup - as with a project in PrPro 2015.3, taking WHILE the version of the file through the process of this thread, while it is guaranteed a clean, workable project file is something didn't translate.

    Here is this thread in the statement process:

    PrPro/Sg 2015.3 solution Hack

    And here is a link to the Adobe-bug/feature request form. The forums of users like this are not place management Adobe monitors requests user & happiness... us, users must complete the forms of bug/feature because they are the communication ONLY the user base for the management people who decide budgets for corrections, features, and improvements to the programs. This judgment of SpeedGrade usability is a bad thing for you, please drop!

    https://www.Adobe.com/cfusion/mmForm/index.cfm?name=wishform

    Neil

  • How to use the files from old computer to new iTunes

    I have been using an external hard drive to store and access my media files to iTunes via iTunes on another computer.   I just got a new computer and want to use this hard drive and files of music via iTunes on it.  What is the best way to do this and what are the steps to begin to play the files from the hard drive on the new iTunes?

    I have changed the preferences of the media folder in iTunes without result and sought media when iTunes opens, also without result.   Thank you!!!

    Media preferences are not what you think. Change said iTunes simply to memorize new media at this location. This is the file iTunes Library.itl tells iTunes where your media. If you use the same external drive (and these are the two Macs) copy the old iTunes folder form computer to the same location on the new computer and it will start with the old library.

  • New laptop - how to use a catalog from a previous laptop?

    I have an old and a new laptop, both with Lightroom 6 installed, and I transferred all my files photo Lightroom since the previous laptop to the new. Is it possible to use the old catalog on the new computer? The image files are in the folder images/Lenovo/Lightroom on the old laptop and MacingtoshHD/users / "Username" / pictures/Lightroom on the new. All subfolders have the same structure in both folders in Lightroom.

    I would be very grateful for any help.

    You must also transfer the catalog to the new laptop computer file. All the details are here: How can I move Lightroom to a new computer? Lightroom Queen

  • How to use the plugin from 11 to 10

    Hello

    I have developed a plugin acrobat in 11, his works in acrobat 11, but now I want to use acrobat 10

    How to do it. Is there something to be replaced, I tried replacing the header file, but no use

    What version of the SDK to develop the plugin did you use?  If you have used the 11 Acrobat SDK, then it can be used only with acrobat 11 and later.  For Acrobat 10, you would need to develop with the software Acrobat X SDK, and then she would collaborate with X and XI.

  • How to use DATE in where clause

    I need to select the list of records in a table where the available date is greater than or equal to the current date. This is the structure of the table and
    Select the query that is used to get the list of records
    CREATE TABLE TEMP (ITEM_ID NUMBER(20),ITEM_NAME VARCHAR2(100),CREATION_DATE DATE,AVAILABLE_DATE DATE);
    
    INSERT INTO TEMP (ITEM_ID,ITEM_NAME,CREATION_DATE,AVAILABLE_DATE) VALUES(1,'ITEM1',SYSDATE,SYSDATE);
    INSERT INTO TEMP (ITEM_ID,ITEM_NAME,CREATION_DATE,AVAILABLE_DATE) VALUES(2,'ITEM2',SYSDATE,SYSDATE+10);
    INSERT INTO TEMP (ITEM_ID,ITEM_NAME,CREATION_DATE,AVAILABLE_DATE) VALUES(3,'ITEM3',SYSDATE,SYSDATE-10);
    INSERT INTO TEMP (ITEM_ID,ITEM_NAME,CREATION_DATE,AVAILABLE_DATE) VALUES(4,'ITEM4',SYSDATE,SYSDATE);
    INSERT INTO TEMP (ITEM_ID,ITEM_NAME,CREATION_DATE,AVAILABLE_DATE) VALUES(5,'ITEM5',SYSDATE,SYSDATE+5);
    
    SELECT ITEM_NAME, available_date FROM TEMP WHERE available_date > SYSDATE OR available_date LIKE SYSDATE;
    I get the documents expected but I'm not able to find a condition where I can use * > = * a query as the below a date data type, is
    do not return only documents not expected
    SELECT ITEM_NAME, available_date FROM TEMP WHERE available_date >= SYSDATE ;
    Published by: Barro on March 19, 2012 21:13

    Hello

    Barros says:
    I need to select the list of records in a table where the available date is greater than or equal to the current date. This is the structure of the table and
    Select the query that is used to get the list of records

    CREATE TABLE TEMP (ITEM_ID NUMBER(20),ITEM_NAME VARCHAR2(100),CREATION_DATE DATE,AVAILABLE_DATE DATE);
    
    INSERT INTO TEMP (ITEM_ID,ITEM_NAME,CREATION_DATE,AVAILABLE_DATE) VALUES(1,'ITEM1',SYSDATE,SYSDATE);
    INSERT INTO TEMP (ITEM_ID,ITEM_NAME,CREATION_DATE,AVAILABLE_DATE) VALUES(2,'ITEM2',SYSDATE,SYSDATE+10);
    INSERT INTO TEMP (ITEM_ID,ITEM_NAME,CREATION_DATE,AVAILABLE_DATE) VALUES(3,'ITEM3',SYSDATE,SYSDATE-10);
    INSERT INTO TEMP (ITEM_ID,ITEM_NAME,CREATION_DATE,AVAILABLE_DATE) VALUES(4,'ITEM4',SYSDATE,SYSDATE);
    INSERT INTO TEMP (ITEM_ID,ITEM_NAME,CREATION_DATE,AVAILABLE_DATE) VALUES(5,'ITEM5',SYSDATE,SYSDATE+5);
    
    SELECT ITEM_NAME, available_date FROM TEMP WHERE available_date > SYSDATE OR available_date LIKE SYSDATE;
    

    Both operands for AS are supposed to be strings. Do not try to use a DATE, such as SYSDATE, with AS.

    I get the documents expected but I'm not able to find a condition where I can use * > = * a query as the below a date data type, is
    do not return only documents not expected

    SELECT ITEM_NAME, available_date FROM TEMP WHERE available_date >= SYSDATE ;
    

    It returns the results I expect.
    If you'd say what results you expected, could someone help you wite a query to get.

    Assuming that 1 second elapses between the time "ITEM4" is inserted and that 2nd query execution, then, running, available_date will be 1 second less than SYSDATE, so it shouldn't be included.
    If you want to find lines that are on the same calendar day as SYSDATE or later, then use

    WHERE    available_date >= TRUNC (SYSDATE)
    
  • How to use the "Order by" clause dynamically on values LOV Forms 10g r2

    Hello

    I have following requirement, please guide me.

    1. create a list of values with 2 fields, Code and Description

    2. do not use the command clause contained in the registration request Group

    3. fix this LOV on a form field

    4. when the user calls the user LOV will see two fields in LOV with header as Code and Description

    5. when the user clicks the column header "Code" then LOV should be arranged on Code

    6 and if the user clicks on the header of the column "Description" then LOV must be sorted on the Description


    Thanks in advance.

    Please post this problem in this forum->

    [Formulas Forum | http://forums.oracle.com/forums/forum.jspa?forumID=82]

    And close this thread by he scored as replied. ;)

    Kind regards.

    LOULOU.

  • How to use global variables from a dll in another (not multi-threaded)

    With LabWindows/CVI. I try to be compatible with legacy code, so this isn't the best way to do things, but it saves me some headaches.

    I have a project/.dll called "GlobalBlock" that contains some parameters used widely throughout the program. The entire program consists of several DLLs, for the purpose of encapsulation.

    GlobalBlock.c contains:

    menu_sdef G_setprefs = struct
    {
    ... stuff

    };

    sys_fileheader_sdef Level1Version = struct
    {
    ... more

    };

    struct G_sys_flags sys_flags_sdef;

    In the dll that owns the variable, use the _export on this qualifier. This will ensure that it is placed in the list of the interface dll. In the application (dll or other) that wants to make reference to that variable, use the qualifier _import on it. This tells the system to use the associated import library that comes with the dll in order to resolve references running.

    JR

  • How to use the order by clause

    Hi Al
    order_tracker1 is a tabular_block that I use this to search I want to order by when I search by serch_value
    Please guide


    The code given is used to find
    declare
    l_where varchar2 (4000);
    Start

    If: search_type = "ALL" then
    l_where: = ' id | party_name | COMMENT1 | del_date like "%' | : serch_value | » %''' ;
    on the other
    l_where: =: search_type |' as "%' | : serch_value | » %''';
    end if;

    set_block_property ('order_tracker1', default_WHERE, l_where);
    go_block ('order_tracker1');
    execute_query;
    end;


    Thanks and greetings
    Vikas Singhal

    Hai,

    Change the line set_block_property ('order_tracker1', default_WHERE, l_where); TO

    set_block_property ('order_tracker1', default_WHERE, l_where |) "order by serch_value");

    or in time design, you can give in the palette of the ORDER BY Clauesproperty.

    or you can write to set_block_property (ORDER_BY, 'order_tracker1', 'serch_value');

    Kind regards

    Manu.

    If this answer is useful or appropriate, please mark. Thank you.

  • How to use the apps to iTunes on macbook?

    How to use an app from iTunes on my macbook? (like snapchat) It worked for my friend, but he won´t works for me...

    iOS applications cannot be run on a computer.

    (142286)

  • How to use the digitizer pen

    Hello

    I just got my new X230T and I can't find how to use the pen from the digitizer.

    Is it possible to write directly on word or a PDF file?

    This video shows that we can configure the stylus but I don't know where!

    http://www.YouTube.com/watch?v=Dy1bg7jRiAE

    I've also heard the box tools Lenovo think Vantage. Where can I download it?

    If anyone can help me, I would be grateful.

    Lenovo X230T with 64 bit of Windows 8

    Toolbox ThinkVantage... She shouldve is preinstalled on your system. You can check support.lenovo.com and look at the driver downloads, however, im not sure if they have eliminated this program. the program that the guy has been used on youtube is called windows journal.

    but other programs that you can write directly on grahl pdf annotator, a single note of microsoft office, microsoft word and office outlook (However, users only for outlook office outlook can see each other drawings).

    personally, I use grahl pdf annotator and there is more to school

Maybe you are looking for

  • I have 2 files for the same artist and I can't put it together

    After downloading many CDs from the same artist, I had 2 files with the same name of artist.

  • Flow 11: BIOS password

    Hi, I forgot my Bios password on my HP Notebook PC 11 stream, is it possible that I can get back. The password I can remember brings system 85051156 disabled.

  • Application builder 26005 error

    Hi all  When I Isaiah to compile my application, I get the following error: 26005 error occurred in build Application.vi > Dist call create Installer.vi > Win install Create.VI > MSI DK Open.viD:\TMNHe\Exe\TMNHe_Testeur_20090709\Installer. Possible r

  • Camera resolution options?

    A simple (I think). What are the differences between the 4 resolution options in the settings of the camera, and what is the best setting by default to have to? I noticed that mine was always at 8 megapixels (16.9). Thank you

  • Want the file names to work as captions

    Hello, I am about to create a DVD of photos and music from an audio CD.  I've never used Windows Media Center before, but plan to use for this project.  Before we go too far, I would like to know how to have my file names to display on each photo - a