How to add records or how to keep the list in the stored procedure

Hello

I am facing a problem in adding the record in the type

create or replace
TYPE               "PROD_SEARCH_COUNT_TBL"                                          AS TABLE OF PROD_SEARCH_COUNT_OBJ;

Something like that

declare
...

cursor curLargerSize
is
SELECT PRODUCTSIZEID
OF ALFAPRODUCTSIZESEQ
WHERE PRODUCTID = SUBSTR (: varItem, 0, instr (: varItem, '.') - 1).
AND CATALOGCOUNTRY = trim(:VCOUNTRYCODE)
AND TRIM (PRODUCTTYPE) IS NULL
ORDER
ASC PRODUCTSEQ;
    
lTbl prod_search_count_tbl;

...
Start
lTbl: = prod_search_count_tbl();

Open curLargerSize;
    
loop
extract the curLargerSize in varProductId value;
When the output curLargerSize % notfound;
       
ALFAQTYAVAILWCFCALC (varProductId, varLargeWCF);
       
lTbl.extend;
lTbl (lTbl.last): = prod_search_count_obj (varProductId the value, varLargeWCF, 0);
end loop;
    
close curLargerSize;

...
end;

Tags: Database

Similar Questions

  • How to show the stored procedure code

    Hello
    How can I get the code for creating a stored procedure using sqlplus instead of sql-developer? I want to get all of the code of the stored procedure. I saw it in writing

    SQL > desc proced_1

    I get the Argument Name, Type and input/output by default of the stored procedure, but if I want to get the code 'create procedure', how can I do?
    Thank you!

    Hai

    Try this

    Select * from user_source where name = 'Procedure_name '.
    online ordering;

    Concerning

    Srikkanth.M

  • How to call the stored procedure from javascript? (Google suggest, AJAX)

    Hi I want to set up a text field so that it behaves like [Google Suggest | http://www.google.com/webhp?complete=1 & hl = en].

    I read this post .

    Now, I installed everything according to this document. But it simply doesn't. And I don't know why.

    I think that problems can fall into the following three categories:
    1. the text field and the page invoking the appropriate javascript?
    2 - is the JavaScript call the stored procedure?
    3. the stored procedure correctly returns the result formatted?

    I'm assertive for 1 and 3, but I'm not sure 2. Because I don't know how if a stored procedure has been called? Is there a PL/SQL statement that I can query in SQL * more?

    Also, I would like to know how to debug AJAX in the APEX. It involves a lot of things.

    Finally, I used APEX 3.2 and Oracle XE. I can't find file dads.conf or marvel.conf. Is ' / apex / "the virtual directory for APEX?

    Thank you very much!

    Buffalo,

    I managed to make it work on XE with APEX 3.2!
    It took more time than expected because my XE installation was still on an earlier version of the Apex and I had put it first...

    But that's what I did:
    -in the ac.js file, I changed the path ' / apex / "and I added the ac.js file to my candidacy as a static file. So as you did.
    -J' copied my request to the XE and copied my procedure on the schema that is related to my request
    -J' gave to run anonymous rights my procedure

    Now at first, it did not work...
    Then I suddenly remembered something: If you want to run a procedure through the pl/sql gateway in the XE, XE please how it is.
    Do you this by changing the APEX_030200.wwv_flow_epg_include_mod_local function!

    This is the code for the function changed for my example:

    CREATE OR REPLACE function APEX_030200.wwv_flow_epg_include_mod_local(
        procedure_name in varchar2)
    return boolean
    is
    begin
        --return false; -- remove this statement when you modify this function
        --
        -- Administrator note: the procedure_name input parameter may be in the format:
        --
        --    procedure
        --    schema.procedure
        --    package.procedure
        --    schema.package.procedure
        --
        -- If the expected input parameter is a procedure name only, the IN list code shown below
        -- can be modified to itemize the expected procedure names. Otherwise you must parse the
        -- procedure_name parameter and replace the simple code below with code that will evaluate
        -- all of the cases listed above.
        --
        if upper(procedure_name) in (
              'MATTHIASH.INCSEARCH') then
            return TRUE;
        else
            return FALSE;
        end if;
    end wwv_flow_epg_include_mod_local;
    /
    

    After that, the AJAX function worked as expected...

    HTH
    Matthias Hoys

    Published by: mhoys on August 13, 2009 15:24

  • How to test the stored procedure in SQL Developer or SQL Plus

    Hello

    It's small, but I am confused. Can someone give me the EXACT command to run to test my stored procedure described below. Please don't refer me to the documentation or offer some sort of pseudocode. I've been through the documentation - and through it again - and I just don't get it. I know that the procedure works in general because I'm calling ColdFusion, but I want to test developer SQL or SQL more before I call my ColdFusion page - it only makes sense. I'm probably not initialize variables right or something - not sure.

    You will see that it is a line right insert in the firstname and lastname data base and there are 2 IN OUT values as well. Please use a fake name for the firstname and lastname values to demonstrate. I appreciate it!

    create or replace
    procedure sp_insertDirector_A)
    vFirstname IN Directors.Firstname%TYPE,
    vLastname IN Directors.Lastname%TYPE,
    vInsertStatus in on NUMBER,
    vNewDirectorID IN OUT NUMBER
    )
    IS
    row_count NUMBER;
    BEGIN
    SELECT Count (*) FROM directors WHERE Lastname vLastname = row_count;
    IF row_count > 0 THEN
    vInsertStatus: = - 1;
    RETURN;
    END IF;

    INSERT INTO administration)
    FirstName, Lastname)
    VALUES)
    vFirstname, vLastname
    );

    SELECT Directors_Seq.CURRVAL INTO vNewDirectorID FROM DUAL;
    vInsertStatus: = 1;
    END;

    If someone can tell me exactly how to test, I'd appreciate it. I asked on another site and got many responses that I tried and did not work due to various errors. Once I get a working example, I'm sure I can get the idea and continue on. I mainly use the SQL Developer.

    Thank you, mallethead

    p.s. I think that my if - THEN followed by the instruction INSERT is fixed - it is woring. Seems a little odd to me however.
    declare
       l_instatus  number;
       l_newdirid  number;
    begin
       sp_insertDirector_A('bob','smith',l_instatus,l_newdirid);
       dbms_output.put_line(l_instatus);
       dbms_output.put_line(l_newdirid);
    end;
    /
    
  • How to call the stored procedure when I press the button

    Hello

    I want to know how to call the procedure/SQL statement when I press the button using callable statement.

    can someone give me it please link who knows the steps to do this.

    Thanks in advance,
    SAN

    Hello

    read this good example http://www.baigzeeshan.com/2010/05/calling-plsql-procedure-and-function-in.html

    ~ Abhijit

  • How to add records to a file via the file adapter.

    Hi all
    How to add records to a file via the file adapter.

    I must read data from the database and need to add all the records in a file.

    Thanks in advance.

    Hello

    I think you have a while loop to hit the DB in your process (as you said you need to extract data from DB 10 times if 1000 rec is here)
    First sopy your DB O/P to a var
    and second time add to previous data. (Otherwise you can directly use Add to start instead of copy and add)
    When the loop ends, you can turn to the file adapter Var.

    Otherwise, you can configure yourFileadapter as it will be aapend current recordings for previous records.

    You can use 'Append = true' in your adapter wsdl file.
    It will add the previous records to existing records in the same file.

    Concerning
    PavanKumar.M

  • Does anyone know how to keep the name of an image embebed in Illustrator v?

    Does anyone know how to keep the name of an image embebed in Illustrator v?

    Add the file name as a Note in the Panel. From a built-in file is just a raster image in GOT it, there is no links to follow.

  • How to keep the (update or delete, insert) triggering action in the table?

    Hello experts,
    I have create a trigger on update, delete or insert. I insert records into a table which records insert, update, or delete.
    I would also like to insert the revival of whick action the trigger as update, delete or insert.

    Here's my trigger code.

    create or replace trigger BOM_HISTORY_TRIGGER
    after update or delete or insert on BOM_HISTORY
    for each line
    Start

    insert into bom_history (BOM_MOD_CODE, BOM_ASSY_CODE, BOM_ASSY_QPS_old, BOM_ASSY_QPS, PPC_SRL_ #, ITEM_ENTR_BY,)
    ITEM_MOD_BY, MOD_DATE, ACTION)
    values(:Old.) BOM_DIV_CODE,: old. BOM_MOD_CODE,: old. BOM_ASSY_CODE,
    : old. BOM_ASSY_QPS,: new. BOM_ASSY_QPS,: old. PPC_SRL_ #,: old. ITEM_ENTR_BY,
    : old. ITEM_MOD_BY, SYSDATE, 'delete')
    END;

    HOW to keep the action in the table.

    also, there is error:
    WARNING: Trigger created with compilation errors.

    Please help to fix it.

    Thank you best regards n
    Yoann

    >
    insert into bom_history (BOM_MOD_CODE, BOM_ASSY_CODE, BOM_ASSY_QPS_old, BOM_ASSY_QPS, PPC_SRL_ #, ITEM_ENTR_BY,)
    ITEM_MOD_BY, MOD_DATE, ACTION)
    values(:Old.) BOM_DIV_CODE,: old. BOM_MOD_CODE,: old. BOM_ASSY_CODE,
    : old. BOM_ASSY_QPS,: new. BOM_ASSY_QPS,: old. PPC_SRL_ #,: old. ITEM_ENTR_BY,
    : old. ITEM_MOD_BY, SYSDATE, 'delete')
    >
    Unless I've counted wrong you have 9 mentioned columns but try insert 10 items.

  • How to keep the metadata after Correct camera distortion filter?

    Hello

    Anyone know how to keep the metadata information after you have used the Correct camera distortion filter?

    In other words:

    When I need to correct the photo with good camera distortion to the menu Filter option I can't keep the metadata to the final table.

    After correction, I cut the useful part with the rectangular selection tool, and then I chose the file, new, Image to the Clipboard.

    Either the format file that I choose to save the metadata information has disappeared.

    I tried to export the metadata from File, FileInfo, information, and then import the metadata (XMP file) but no result.

    Someone at - it an idea to solve this issue

    Thank you

    This is probably because your using the Clipboard that discards the data.

    Try to crop your photo and recording. You can always cancel the harvest after saving if you want to do something in the photo.

  • How to keep the Safari in full screen, when it opens instead of small rectangle I enlarge them with green button and how to keep the presentation of upper task bar without always having to lower

    How to open safari in its entirety in a small rectangle and then having to enlarge.  It started to happen.

    How to keep the top toolbar in view rather than having to lower whenever necessary

    Drag the bottom right and left corners of the window to enlarge it to fit the screen.

  • I made my largest site and how can keep the same size for all other sites?

    I did the 2 larger site and how to keep the same size for all pages when I re - open the web browser?

    You can use an extension to set a page zoom and the size of the default font on the web pages.

  • How to keep the Safari line at the top of my screen to disappear?

    How to keep the Safari line at the top of my screen to disappear?

    See the toolbar of Safari mode full screen?

    Launch Safari.

    Click on the Green navigation button to enter full screen mode.

    Move the mouse to the top of the screen.

    When the menu bar and the toolbar drop-down, click on 'View' in the menu bar of Safari.

    In the drop-down menu choose «Always see the toolbar in full screen»

  • How to keep the Macbook pro screen and cin on position?

    How to keep the Macbook pro screen and computer in position 'on '.  I don't want the computer shuts down or cut unless I ask him to...

    If you talk to keep your machine to fall asleep, take a look at the caffeine.

  • How to keep the input value after click on the back button being the ADF

    Hi expert,

    I have a case currently the adf:

    1. I put 'value' in the Label 1

    2. I click on the next button

    3. I click on the "back" button

    4. the 'value' went from 1 label.

    How to keep the 'value' of 1 tag after I click back, do you have any suggestions?

    Kind regards

    Ricky

    Hello

    Where you store the value? Try to store it in a variable pageFlowScope or a property of the pageFlowScope bean.

    value = "#{pageFlowScope.testVar} '"

    value = "#{pageFlowScope.testBean.testVar} '"

    Kind regards

    Ruben.

  • How to keep the HTML text (i.e. Peragraph) according to the proportions?

    How to keep the HTML text (i.e. Peragraph) according to the proportions?

    Do not disturb (coming down / up) even a letter / word

    Do not disturb (coming down / up) even a letter / word

    Due to levels of zoom browser and personal user settings, there is no possible way to ensure an alignment of text on the web, unless you use images of the text.  Of course, this isn't an option because images of text cannot be indexed by search engines, screen readers or translators of language.

    Nancy O.

  • How to keep the environment setting

    We need to set disable javascript.

    But,

    after update, it turns to activate.

    You please show me

    How to keep the environment-setting before and after the update of Adobe reader.

    Thank you

    JavaScript is enabled by default in the browsers. Turn off (disable) is a manual process, which must be done by the end user.

    JavaScript must be enabled in order to use the Adobe Download Manager.

    You can download the Installer http://get.adobe.com/reader/enterprise/ offline without having to activate javascript. But there IS NO Adobe Reader (or Adobe Updater) affecting control javascript in browsers, or disable it automatically afer a download.

Maybe you are looking for

  • Firefox ends when all tabs are closed in V36

    In V35, Firefox continues to work even if all the tabs are closed.Now in V36, Firefox ends when all tabs are closed.Y at - it a configuration back to the original schema option used in V35?

  • Latest BIOS forSatellite L30 (PSL33E) has a serios bug.

    Can someone help me find some old (3.0) BIOS for Toshiba Satellite L30-134 PSL33E? The BIOS which is available on the official website of Toshiba has a serious bug. After upgrading my laptop seems to generate a lot more heat than before and my DVD is

  • ENVY 17 3D - no overheating, no surprise, but suddenly the CPU is too

    Since HP has really managed to kill the line of envy and merge it with the Pavilion dv line, brand envy low poor quality material pavilions, I still use my old, real envy 17 3d 1195ea apart elitebook workstations brilliant, because his only able succ

  • HP Envy 17-J181nr msata drive

    I would like to know if I can add an msata diving. I would use it as a reader of chase. the guide indicates that no schema it's. If so, I can add someone can tell where it is located? I see that some may put in without tearing the notebook Thanks Bil

  • firmware for Color Laserjet 2600

    I have a Color Laserjet 2600 and am interested in ensuring that my firmware is updated. I have the instructions on how to do this, but do not know where to install the firmware flash needed. EXE file. Any help would be greatly appreciated. TX