Appellant the package with the cursor type and registration type variables

Hello
I tried the following package, which is similar to my requriement, the package has been successfully created, when you call it gives me error, the number of false arguments
CREATE OR REPLACE PACKAGE Pkg_test1
IS
  ----- Record Variable ----
  TYPE rec_job IS RECORD
   ( job varchar2(50),
     ename varchar2(50),
     sal number
   );
  TYPE typ_job IS TABLE OF rec_job;
  
  -- cursor declaration
  cursor emp_cur is select empno from  emp;
  TYPE emp_ttyp IS TABLE OF emp_cur%ROWTYPE INDEX BY PLS_INTEGER;
  ---- Procedure Declaration ----
PROCEDURE proc_job ( p_cur IN   emp_ttyp,
                     o_Rat     OUT  typ_job );
 
END Pkg_test1;
/

CREATE OR REPLACE PACKAGE BODY Pkg_test1
IS
 
 PROCEDURE proc_job ( p_cur IN   emp_ttyp, o_Rat     OUT  typ_job )
  IS 
    -- Declare collection variable 
    l_typ_job typ_job; 
 
BEGIN
   for i  in 1..p_cur.count loop
    select job,ename,sal bulk collect into l_typ_job
      from emp
      where empno=p_cur(i).empno ; 
o_Rat:= l_typ_job;
end loop;
--Output
for i in 1..o_rat.count loop
 DBMS_OUTPUT.PUT_LINE ( 'Output :'||o_rat(i).job||','||o_rat(i).ename||','||o_rat(i).sal );
  end loop;

EXCEPTION
  WHEN OTHERS THEN 
       DBMS_OUTPUT.put_line('Procedure proc_job  - '|| SQLCODE|| '-'|| SQLERRM);
 END proc_job;
  end pkg_test1;
/
The package is created without errors
But during the call, it gives me errors
DECLARE 
  P_CUR PKG_TEST1.emp_ttyp;
  O_RAT PKG_TEST1.rec_job;
BEGIN 
  PKG_TEST1.PROC_JOB ( P_CUR, O_RAT );
  COMMIT; 
END; 
Error is:
PLS-00306: wrong number or types of arguments in call to 'PROC_JOB'
Can you let me see how to overcome this error...

Thank you..

Published by: Smile on 9 may 2012 07:27
SQL> DECLARE
  2  P_CUR PKG_TEST1.emp_ttyp;
  3  O_RAT PKG_TEST1.typ_job := PKG_TEST1.typ_job(null);
  4  BEGIN
  5  PKG_TEST1.PROC_JOB ( P_CUR, O_RAT );
  6  END;
  7  /
Procedure proc_job  - -6531-ORA-06531: Reference to uninitialized collection

PL/SQL procedure successfully completed.

SQL> CREATE OR REPLACE PACKAGE BODY Pkg_test1
  2  IS
  3
  4   PROCEDURE proc_job ( p_cur IN   emp_ttyp, o_Rat     OUT  typ_job )
  5    IS
  6      -- Declare collection variable
  7      l_typ_job typ_job := typ_job();
  8
  9  BEGIN
 10     for i  in 1..p_cur.count loop
 11      select job,ename,sal bulk collect into l_typ_job
 12    from emp
 13    where empno=p_cur(i).empno ;
 14  o_Rat:= l_typ_job;
 15  end loop;
 16  --Output
 17  if o_rat is null then return; end if;
 18  for i in 1..o_rat.count loop
 19   DBMS_OUTPUT.PUT_LINE ( 'Output :'||o_rat(i).job||','||o_rat(i).ename||','||o_rat(i).sal );
 20    end loop;
 21  EXCEPTION
 22    WHEN OTHERS THEN
 23     DBMS_OUTPUT.put_line('Procedure proc_job  - '|| SQLCODE|| '-'|| SQLERRM);
 24   END proc_job;
 25    end pkg_test1;
 26  /
Package body created.

SQL> DECLARE
  2  P_CUR PKG_TEST1.emp_ttyp;
  3  O_RAT PKG_TEST1.typ_job;
  4  BEGIN
  5  PKG_TEST1.PROC_JOB ( P_CUR, O_RAT );
  6  END;
  7  /

PL/SQL procedure successfully completed.

SQL> 

SY.

Tags: Database

Similar Questions

  • For loops with the cursor line and indexing

    Hi all

    I have a question about the loops with the cursor, line and indexing.

    How can I scan via a cursor with an iterator?

    I would use an iterator as

    Whole LoopIndex;
    Whole LoopIndex2;

    for LoopIndex at the beginning of the cursor at the end of the cursor
    loop
    line =: cursor [LoopIndex];
    for LoopIndex2 of LoopIndex at the end of the cursor
    etc...
    end loop;

    I need to use an iterator because I need to use a nested for loop.



    OR


    How can I solve the following problem?

    Class name % ofClass average test Score
    1 Niobe 7 8 8.4
    1 alena 4 7 7.5
    1 9 7 8.9 Estia
    1 Lilly 10 8 9.8
    1 Sandra 6 8 8.3
    1 Melanie 8 8 8.1
    Nadia 2 8 3 4.4
    Sayuki 2 9 8 8.4
    Diasy 2 7 8 8.0
    Flower 2 7 8 6.5
    Diana 2 6 8 7.3
    3 Flora 7 8 5.8
    Sukiya 3 4 8 8.4
    Samantha 3 10 8 7.7
    Roxanne 3 7 8 6.9
    Eline 3 8 8 7.4

    I need to
    -By class, I need to recalculate each average people
    -By class, I need to calculate the % of class score (sum averages / people in the class)

    So it can be done in a nested for loop?
    Or do I just step by step?

    Well, based on this information it would be something like...

    SQL> ed
    Wrote file afiedt.buf
    
      1  with t as (select 1 as Class, 'Niobe' as Nm, 7 as Score, 8 as Tests, 8.4 as Average from dual union all
      2             select 1, 'Alena', 4, 7, 7.5 from dual union all
      3             select 1, 'Estia', 9, 7, 8.9 from dual union all
      4             select 1, 'Lilly', 10, 8, 9.8 from dual union all
      5             select 1, 'Sandra', 6, 8, 8.3 from dual union all
      6             select 1, 'Melanie', 8, 8, 8.1 from dual union all
      7             select 2, 'Nadia', 3, 8, 4.4 from dual union all
      8             select 2, 'Sayuki', 9, 8, 8.4 from dual union all
      9             select 2, 'Diasy', 7, 8, 8.0 from dual union all
     10             select 2, 'Blossom', 7, 8, 6.5 from dual union all
     11             select 2, 'Diana', 6, 8, 7.3 from dual union all
     12             select 3, 'Flora', 7, 8, 5.8 from dual union all
     13             select 3, 'Sukiya', 4, 8, 8.4 from dual union all
     14             select 3, 'Samantha', 10, 8, 7.7 from dual union all
     15             select 3, 'Roxanne', 7, 8, 6.9 from dual union all
     16             select 3, 'Eline', 8, 8, 7.4 from dual)
     17  --
     18  -- END OF TEST DATA
     19  --
     20  select class, nm as "NAME", score, tests, average
     21        ,round(((average*tests)+score)/(tests+1),1) as avg_person
     22        ,round((average / sum(average) over (partition by class))*100,1) as class_average
     23  from t
     24* order by class, nm
    SQL> /
    
         CLASS NAME          SCORE      TESTS    AVERAGE AVG_PERSON CLASS_AVERAGE
    ---------- -------- ---------- ---------- ---------- ---------- -------------
             1 Alena             4          7        7.5        7.1          14.7
             1 Estia             9          7        8.9        8.9          17.5
             1 Lilly            10          8        9.8        9.8          19.2
             1 Melanie           8          8        8.1        8.1          15.9
             1 Niobe             7          8        8.4        8.2          16.5
             1 Sandra            6          8        8.3          8          16.3
             2 Blossom           7          8        6.5        6.6          18.8
             2 Diana             6          8        7.3        7.2          21.1
             2 Diasy             7          8          8        7.9          23.1
             2 Nadia             3          8        4.4        4.2          12.7
             2 Sayuki            9          8        8.4        8.5          24.3
             3 Eline             8          8        7.4        7.5          20.4
             3 Flora             7          8        5.8        5.9            16
             3 Roxanne           7          8        6.9        6.9          19.1
             3 Samantha         10          8        7.7          8          21.3
             3 Sukiya            4          8        8.4        7.9          23.2
    
    16 rows selected.
    
  • There is a transparent circle at the bottom of my screen with my cursor inside and my touchscreen is unresponsive especially.

    There is a transparent circle at the bottom of my screen with the cursor of the mouse inside and my touch screen has become mainly unresposive.

    With respect to the cursor, I followed instructions stating that "USB input device" under "Human Interface Devices" in Device Manager should be disabled, I found. This seems to have resolved this issue, but I can leave this option off or something will not work?

    Regarding my touch screen becomes mostly unresponsive, sometimes I can scroll in my Firefox browser and very very occasionally I can touch the screen to access something but not normally.

    My laptop is a Sony VAIO

    Product name: SVT1312B4E

    ModelSVT131A11M

    Any help would be appreciated.


  • Why when I type the cursor jumps and the words in the previous sentence

    When I type an email the cursor seems to go to what I wrote previously. I have to stop and go back to elimanate the words so I can continue typing. This boring and tedious. The words blend together in the early writings. What is the cause?

    Hello Charles,

    Try the procedure described at the following link:

    https://us.en.KB.Sony.com/app/answers/detail/A_ID/32225

    If the problem persists, contact Sony service team:

    http://eSupport.Sony.com/us/p/service.pl

    If my post answered your question, please mark it as an "accepted Solution".

  • In Illustrator, how can I get the cursor type to effectively indicate WHERE the guy is going to start?

    I don't understand. What is the point of having a cursor type at all if the cursor position doesn't look like whatever the point type will begin in? I checked all the Options in the type menu and any leader is zero, so there is no lag anywhere, but when I click on a particular spot on the page, it's because that's where I hope to see the type. What a laugh! No placement type correct, will never be. It must be scooted in place. using the arrow. Is it possible to make the entry point makes it a resemblance to the point ' by clicking on '?

    I don't see a problem:

    Your paragraph palette has something inside in addition to zeros? My guess is that you have left a big indent in the first field.

  • Problem with the cursor TYPE

    I have table with data week_tab

    week_num bkg1 bkg2 bkg_type
    1 10 20 at_prod
    2 40 10 at_serv
    3 30 20 prod
    2 20 60 at_prod
    1 10 50 at_serv
    1 20 80 at_net
    3 10 30 at_net

    I'm putting this request in a cursor

    SELECT SUM (bkg2), bkg_type
    OF week_tab
    WHERE bkg_type LIKE 'to %.
    GROUP BY bkg_type;

    PROCEDURE get_bkg_tot)
    p_colName IN VARCHAR2,
    p_refCursor OUT ref_cursor) AS

    v_query VARCHAR2 (4000);

    BEGIN
    v_query: = ' select sum('|| p_colName ||'), bkg_type
    of week_tab
    where bkg_type like: x
    Bkg_type group ';

    P_refcursor OPEN FOR v_query 'than ';
    END;
    --------------------------------------------------------------------------------
    PROCEDURE get_total_val AS
    v_refCursor ref_cursor;
    v_sum NUMBER;
    v_week NUMBER;
    v_total NUMBER: = 0;
    STRARRAY v_colName: = STRARRAY ('BKG1', 'BKG2');

    BEGIN

    I'm IN v_colName.FIRST... v_colName.Last LOOP

    get_bkg_tot ("bkg2", v_refcursor);
    LOOP
    EXTRACTION v_refCursor
    IN v_sum, v_week;
    EXIT WHEN v_refcursor % NOTFOUND;
    v_total: = v_total + v_sum;
    DBMS_OUTPUT. Put_line (' week ' | v_week |': ' | v_sum);
    END LOOP;
    DBMS_OUTPUT. Put_line (' total sales reservations :'|| v_total);

    END LOOP;
    END get_total_val;

    When I tried to run get_total_val, I get

    ORA-01722: invalid number
    ORA-06512: at "SCOTT. GET_TOTAL", line 45
    ORA-06512: at line 2

    What could be the error?

    Thanks in advance

    Well, look at the query behind your refcursor:

    v_query := 'select sum('||p_colName||'), bkg_type
    from week_tab
    where bkg_type like : x
    group by bkg_type';
    

    Based on your sample bkg_type is a string.

    Now consider the procedure get_total_val. It retrieves bkg_type in NUMBER variable v_week. No wonder you get ORA-01722: invalid number.

    SY.

  • Why can I not play game spark gap of bubble for more than 5 minutes at a time before the cursor freezes and I can play is no longer?

    Have you tried to restart, clean disk, defrag.no help.

    Hi Lew50,

    Welcome to the Microsoft Answers Community Forum site!

    Please provide additional information to resolve your issue.

    1. What is the operating system that you are using?
    2. Was there any recent changes/updates / drivers installed on your computer?
    3. You have installed this game on your computer or you try to play online?

    If it's a game online, offers to optimize the internet Explorer by following the instructions mentioned in the article.

    http://support.Microsoft.com/kb/936213/

    Suggest you temporarily disable all security software and check if it helps you play game.

    There are chances that Bubble Popper is perhaps not compatible with the operating system you are using. Invite you to check if the game you are playing is compatible or not.

    To check the compatibility of Windows Vista, I suggest you visit the below mentioned link.

    http://www.Microsoft.com/Windows/compatibility/Windows-Vista/default.aspx

    To check compatibility in Windows 7, I suggest you visit the below mentioned link.

    http://www.Microsoft.com/Windows/compatibility/Windows-7/en-us/default.aspx

    If your game is compatible and you are always faced with the question, suggest you to visit the community Bubble Popper and look for the question.

    http://www.igarchive.com/Forum/?GID=9889&game=bubble+Popper

    I hope this helps solve your problem!

    Thank you best regards &,.

    Calogero - Microsoft technical support.
    Visit our Microsoft answers feedback Forum
    http://social.answers.Microsoft.com/forums/en-us/answersfeedback/threads/ and tell us what you think

  • Followed, does not not for the cursor Type

    I just SC5. I remember when I wanted to address followed, I used to be able to just drag the icon in the character Panel. This doesn't seem to work now! I looked through prefs but can't seem to find anything to fix. Any thoughts are appreciated.

    Not in Illustrator, there no dynamic cursors as other applications such as After Effects

  • Regulator PID very slow to reach the value Point and zeros process Variable when it should not

    Hello

    I am using a PID controller to regulate the emission of a filament current in an ion gauge, but I'm running into several problems.

    The first and less important, are the controller of PID VI takes at least 5 minutes to get the current where it needs to be.  Is it possible to speed this up?

    The second and more important, are that the PID controller tends to zero the process variable before you start the process of getting the close process of the target value variable.  This can be seen in the attached VI: I write 5.8 volts voltage filament - something I did at the beginning to try to get the controller PID for the process close to the target faster - value variable but when the PID controller starts to do his thing, he kills the tension before anything, rather than rise of 5.8 V.

    The attached VI is a single which has these problems.  VI actual ion gauge controller I've written has the same problems, but in a form even more frustrating.  I have a while loop set up for the filament voltage to where it should be (using a PID controller) first and foremost, then a loop of data acquisition, which also includes a feedback loop in the form of a PID regulator to maintain the filament voltage.  When the second PID controller starts to run, it concentrates the tension that the earlier had set, taking another 5 + minutes to reach the point where we can take data and giving us 5 minutes of false data in the process!

    Does anyone know why PID controllers are behaving like this, and what can I do to fix/work with this behavior?

    Hello

    It seems that PID VI will always be 0 for the first iteration. You can, however, use the advanced PID VI and set up the first iteration in manual mode. After subsequent iterations, you could then define this automatic mode and there will be a transition smoothly. I think this will give you the desired behavior.

    -Zach

  • Why my 5 Lightroom ends after entering the serial number and registration?

    I had the 30 day trial of LR 5. Liked and bought the full version. Installation showed as much success on my Mac. Then, when I try to open, I get the same screen when I had the trial version that indicates "0" days left on my trial and I need license with a serial number. I enter the serial number, registration, press enter and then the program quits. Tried several times with the same result. What I am doing wrong?

    Any suggestion would be appreciated.

    Hello

    Please follow the steps:

    1. open the host file in Mac and find all the entries for Adobe, if present remove Adobe entered, save the host file. Location of the host file: go / go to the file/etc/hosts and try to activate again.

    2. navigate to/Library/Application Support / Adobe and give permission to Adobe. Try to activate again. Please find the link showing how to give permissions on Mac: http://www.macinstruct.com/node/415

    3 enable the root account: http://support.apple.com/kb/ht1528 and try to activate again the root. If still the same error

    4 uninstall Lightroom from Applications/Utilities/Adobe Installers. Run the CC cleaning tool: http://helpx.adobe.com/creative-suite/kb/cs5-cleaner-tool-installation-problems.html and try to activate again.

    Please let us know if it worked.

    Kind regards

    Romit Sinha

  • Visibility of the agents Affairs and Screenflows project Variables

    There is a way to retrieve the value of a parameter to a business or a project Variable in a Screenflow?

    I think the visibility of these variables is just at the level of the project.

    Hello

    Sorry - I'm a bit slow today. When you say "retrieve the value of a variable in an automated task" do you mean you want to recover it's current setting?

    If this is the case, you can do that with any business setting using the logic:

    object as Object
    object = BusinessParameter.getValue(name : "MIN_CREDIT_SCORE")

    creditParameter = Int(object)

    In this logic, I retrieve the value of the parameter MIN_CREDIT_SCORE business and put it in the instance variable 'creditParameter' inside a Screenflow. Note that the setting of the company has quotation marks that surround it and note that the object is cast in "Int", since the variable I'm assigning is an int. Similarly, if you receive the value of a parameter of business channel, your cast instead would be «...» String (Object) ".

    If you do this already and that you get syntax errors in the method editor, close the project and reopen the project - you have a cooling problem.

    HTH,
    Dan

  • Calculate days a year in the current year/CDA days in the previous year and store in Variables to repository

    Hello peers - how can we calculate CDA days in the current year, CDA days in the previous year using SQL Timestampadd/Timestampdiff works and store them as variables to repository? Appreciate any inputs.

    Thank you.

    Regarding the answer to your other question (How to use the functions Timestampadd/Timestampdiff in the repository Variables) you don't need to use timestampadd / timestampdiff for a block init but real SQL, to verify the features in charge of your database.

    PS: Days CDA? If you just want to know the day number based on the year?

  • Question on the PL/SQL and substitution of variables

    Good evening

    I just started studying the PL/SQL (currently at page 13 of the book), I typed the following example from the book:
    declare
      v_student_id          number          := &sv_student_id;
      v_first_name          varchar2(35);
      v_last_name           varchar2(35);
    
    begin
      select first_name,
             last_name,
        into v_first_name,
             v_last_name
        from student
       where student_id = v_student_id;
    
    
      dbms_output.put_line('Student name : ' || v_first_name || ' ' v_last_name);
    
      exception
        when no_data_found then
          dbms_output.put_line('There is no such student');
    end;
    /
    that gets me the following error:
    SP2-0552: Bind variable "SV_STUDENT_ID" not declared.
    I thought that SQL * more would invite me for a value to be substituted for SV_STUDENT_ID but it does not, that caused the error. Why has no SQL * more invite me for the value of SV_STUDENT_ID and what is the correct way to do it than the code above?

    Thank you for your help,

    John.

    As a result, DDL for STUDENT table:
    CREATE TABLE STUDENT
     (STUDENT_ID NUMBER(8,0)
     ,SALUTATION VARCHAR2(5)
     ,FIRST_NAME VARCHAR2(25)
     ,LAST_NAME VARCHAR2(25)
     ,STREET_ADDRESS VARCHAR2(50)
     ,ZIP VARCHAR2(5)
     ,PHONE VARCHAR2(15)
     ,EMPLOYER VARCHAR2(50)
     ,REGISTRATION_DATE DATE
     ,CREATED_BY VARCHAR2(30)
     ,CREATED_DATE DATE
     ,MODIFIED_BY VARCHAR2(30)
     ,MODIFIED_DATE DATE
     )
    /

    You had a few syntax errors (lines 7 and 12), but after their attachment, your code worked for me:

    SQL> ed
    Wrote file afiedt.buf
    
      1  declare
      2    v_student_id          number          := &sv_student_id;
      3    v_first_name          varchar2(35);
      4    v_last_name           varchar2(35);
      5  begin
      6    select first_name,
      7           last_name
      8      into v_first_name,
      9           v_last_name
     10      from student
     11     where student_id = v_student_id;
     12    dbms_output.put_line('Student name : ' || v_first_name || ' ' || v_last_n
    ame);
     13    exception
     14      when no_data_found then
     15        dbms_output.put_line('There is no such student');
     16* end;
    SQL> /
    Enter value for sv_student_id: 1
    old   2:   v_student_id          number          := &sv_student_id;
    new   2:   v_student_id          number          := 1;
    
    PL/SQL procedure successfully completed.
    

    Did you happen to define set off?

    SQL> show define
    define "&" (hex 26)
    
    SQL> set define off
    SQL> /
    SP2-0552: Bind variable "SV_STUDENT_ID" not declared.
    SQL> set define on
    SQL> /
    Enter value for sv_student_id: 1
    old   2:   v_student_id          number          := &sv_student_id;
    new   2:   v_student_id          number          := 1;
    
    PL/SQL procedure successfully completed.
    

    Published by: Andy Klock on August 11, 2010 18:13 (sorry, line 7 means there was an error not 9...)

  • change the loop condition and cursor

    Hi all

    We have the procedure below:

    PROCEDURE ext_UPLOAD IS

    v_colname VARCHAR2 (30);

    v_tl_colname VARCHAR2 (30);

    v_stmt VARCHAR2 (32767).

    v_stmt_no NUMBER;

    CURSOR DISTINCT_COLUMN IS

    SELECT DISTINCT T_STG DB_COL;

    BEGIN

    v_stmt_no: = 5;

    FOR DBCOL IN DISTINCT_COLUMN

    LOOP

    v_colname: = DBCOL. DB_COL;

    v_stmt_no: = 10;

    v_stmt: = ' MERGE IN EXT_B ED

    WITH THE HELP OF)

    SELECT TAG_DATA,

    EQUIPMENT_FK_KEY,

    WORKORDER_FK_KEY,

    SEGMENT_FK_KEY,

    SHIFT_WORKDAY_FK_KEY,

    HOUR_FK_KEY,

    ITEM_FK_KEY,

    READ_TIME,

    ATTR_GROUP_ID,

    RECIPE_NUM,

    RECIPE_VERSION,

    NVL (FND_GLOBAL. User_Id,-1) l_updated_by,.

    NVL (FND_GLOBAL. Login_Id,-1) l_last_update_login

    OF MTH_TAG_READINGS_T_STG

    WHERE DB_COL = ' | " ' || v_colname | " ' ||') TS

    WE (';)

    v_stmt: = v_stmt | "ED. EQUIPMENT_PK_KEY = TS. EQUIPMENT_FK_KEY AND

    ED. READ_TIME = TS. READ_TIME)

    WHEN MATCHED THEN

    UPDATE

    GAME ED.'. v_colname |' = TS. TAG_DATA,

    ED. LAST_UPDATED_BY = TS.l_updated_by,';

    v_stmt: = v_stmt | "ED. LAST_UPDATE_LOGIN = TS.l_last_update_login

    WHEN NOT MATCHED THEN

    INSERT ('| v_colname |', EXTENSION_ID, EQUIPMENT_PK_KEY, WORKORDER_FK_KEY, SEGMENT_FK_KEY, SHIFT_WORKDAY_FK_KEY, HOUR_FK_KEY, ITEM_FK_KEY, READ_TIME, ATTR_GROUP_ID, LAST_UPDATE_DATE, LAST_UPDATED_BY,';)

    v_stmt: =.

    v_stmt | ("LAST_UPDATE_LOGIN, CREATED_BY, CREATION_DATE, RECIPE_NUM, RECIPE_VERSION)

    VALUES (TS. TAG_DATA, EGO_EXTFWK_S.NEXTVAL, TS. EQUIPMENT_FK_KEY, TS. WORKORDER_FK_KEY, TS. SEGMENT_FK_KEY, TS. SHIFT_WORKDAY_FK_KEY, TS. HOUR_FK_KEY, TS. ITEM_FK_KEY, TS. READ_TIME,';

    v_stmt: = v_stmt | "TS. ATTR_GROUP_ID,' | '''|| SYSDATE | "'| ', TS.l_updated_by, TS.l_last_update_login, TS.l_updated_by,'|"' | SYSDATE | " ' ||', TS. RECIPE_NUM, TS. RECIPE_VERSION)';

    mth_util_pkg.log_msg ('v_stmt: ' | v_stmt, mth_util_pkg.) G_DBG_DYN_SQL);

    -DBMS_OUTPUT. Put_line (v_stmt);

    v_stmt_no: = 20;

    EXECUTE IMMEDIATE v_stmt;

    -VALIDATION;

    END LOOP;

    EXCEPTION

    WHEN INVALID_NUMBER THEN

    RAISE_APPLICATION_ERROR (-20008,'The Data Tag you are tyring to insert the character data is.) A number should instead. ") ;

    WHILE OTHERS THEN

    RAISE_APPLICATION_ERROR (-20008, SQLERRM |' to ' | v_stmt_no);

    END;

    In above query we conduct cursor on DB_COL OF DIFFERENT T_STG, but the above query fails if we have the same db_col, but for groups of different attributes. I want the merge request and loop to work for separate but with given db_col ATTR_GROUP_ID as I have attr_group_id 10 and 20, but two of them may have db_col as n_ext_attr1 and slider should be for db_col and also take into account attr_group_id. can you be it someone please let me know how to change the cursor above and also the loop as well as db_col and attr_group_ ID the two are taken into account.

    Thanks in advance.

    Maybe you need to take a step back and explain exactly what you're trying to reach, providing tables of the example and example, the production of these data in the example data.

    No offence not intended, but your statement dynamic MERGE is not well written, completely does not use bind variables (and why you think concatenating SYSDATE in a stirng as it will work properly, I don't know), and will be a nightmare to maintain in the future.  I'll ignore for now the use of waste from other exception ONCE (even if it's really cr * p coding) you clearly bigger problems to solve first.

    Thus, in addition to providing some data and tables of the example can answer you, why you do not know the names of the columns you try to merge?

    The mention of the ATTR in your instructions seem to feel a bit as if you use a type of entity-attribute-value architecture to your database, is this true? I hope sincerely that no, since it is known to be a performance killer and a nightmare to code and maintain when it comes to relational database engines. (I have a personal experience of having been victims of such a database design, and fortunately, we managed to convince management that the product was not fit for purpose and it was abandoned within months purchased (if only we could see before purchase)!)

  • The cursor position can go beyond the limits when programmed with change of position

    I have the VI joint that has 2 buttons on it to move the cursor right and left of an increment when pressed.  (The code works when I replace with another chart of mixed signals with the same data as this one).  For some reason, the cursor will move beyond 608 to 613 to the right and the left.  I have the shows all the parcels market, but it doesn't seem to affect the thing.   Any ideas as to why this is happening?

    I have not studied in detail what is happening in your case, but as the sliders are locked in patches, it seems more reasonable to use the property "cursor index. It sets the index position of the table data where the cursor is locked. Seems to work very well (and without all this only convoluted songs and dances with cursor lists and names of labels).

    Try this:

    (I also highly recommend to stay away from coloring Easter egg from the diagram. A Boolean is hard to see on a green background. There is not a single background color that does not interfere unless a color yarn. Don't try to be cute, to focus on the task of encoding instead.

Maybe you are looking for

  • Browser wants to open 150 tabs and windows at startup...

    In the process of cleaning up my office, I have switched my keyboard. I got the browser window open to ESPN3 in a replay of College football. My keyboard is a keyboard shortcut to open new tabs. Unbeknownst to me at the time, the shortcut key decline

  • Push Pin information fills the map in MapPoint 2013.

    I use MapPoint 2013 and display data from customer numbers in code pine information push.  The problem is that the info of the push pin fills the card.  Is it possible to change the size of the Push Pin Info and even move around map sothey don't too

  • Sharing of Boolean values across while loops

    I'm new to Labview and I try to use an angular encoder as a type of switch. I want to take measures continuously from the angle of the encoder and turn on an analog output signal, each time comes in a certain angle. When the encoder drops from this a

  • When I go to download Windows 10 I get an error code 0x80072F8F-0 x 20000.

    Hi when I go to download Windows 10 getting an error code 0x80072F8F-0 x 20000. Any ideas what this means. See you soon OT: Windows 10

  • Dell 1250c sleep problem

    Hello I have a problem with my printer which I can't print to it once he went on the eve (light yellow). To print I need to turn off the printer, then press. Can I do to solve this problem? Power management settings have only 1-6 for a deep sleep and