Error in the pl/sql block using associative arrays

Hello
I tried the following block of code using associative arrays.
DECLARE
   TYPE NumTab IS TABLE OF NUMBER INDEX BY BINARY_INTEGER;
   CURSOR c1 IS SELECT empno FROM emp;
   empnos NumTab;
   rows   NATURAL := 10;
BEGIN
   OPEN c1;
   FOR i in empnos.first..empnos.last LOOP
      /* The following statement fetches 10 rows (or less). */
      FETCH c1 BULK COLLECT INTO empnos LIMIT rows;
      EXIT WHEN c1%NOTFOUND;
      DBMS_OUTPUT.PUT_LINE ( empnos.next(i)); 
   END LOOP;
   CLOSE c1;
END;
and the error is
DECLARE
*
ERROR at line 1:
ORA-06502: PL/SQL: numeric or value error
ORA-06512: at line 8
could you please let me know where I am going wrong
and please guide me where we use these associative arrays.

Thank you

Try this

DECLARE
   TYPE NumTab IS TABLE OF emp%rowtype INDEX BY PLS_INTEGER;
   CURSOR c1 IS SELECT * FROM emp;
   empnos NumTab;
   rows   INTEGER := 10;
BEGIN
  OPEN C1;
  LOOP
    FETCH c1 BULK COLLECT INTO empnos LIMIT rows;
    EXIT WHEN c1%NOTFOUND;

    FOR i IN 1..empnos.count
    LOOP
      DBMS_OUTPUT.PUT_LINE(empnos(i).empno || '/' || empnos(i).ename);
    END LOOP;
  END LOOP;
END;

Tags: Database

Similar Questions

  • change a pl/sql block using "bulk collect.

    Hello

    I have a pl/sql block, short it slows...

    DECLARE

    CURSOR CURUPDATE1 IS

    SELECT MF_TJ. UID_LO

    OF MF_TJ

    WHERE MF_TJ. DTYP (SELECT CD

    OF MF_DOC_TYPE

    WHERE MF_DOC_TYPE. DTYP_CAT = 'xx')

    AND MF_TJ. LINE_TYP IS SET TO NULL;

    BEGIN

    FOR T IN CURUPDATE1

    LOOP

    UPDATE MF_TJ

    THE MF_TJ VALUE. LINE_TYP = "NR."

    WHERE MF_TJ. UID_LO = T.UID_LO;

    UPDATE MF_AJ

    THE MF_AJ VALUE. LINE_TYP = "NR."

    WHERE MF_AJ. TJ_UID_LO = T.UID_LO;

    END LOOP;

    END;

    /

    now I change to use bulk collect, but I split it into two pl/sql blocks (each for an update)

    DECLARE
    CURSOR CURUPDATE1 IS
    SELECT MF_TJ. UID_LO
    OF MF_TJ
    WHERE MF_TJ. DTYP (SELECT CD
    OF MF_DOC_TYPE
    WHERE MF_DOC_TYPE. DTYP_CAT = 'xx')
    AND MF_TJ. LINE_TYP IS SET TO NULL;
    TYPE of recs_type IS the TABLE OF CURUPDATE1% ROWTYPE directory INDEX;
    REB recs_type;
    BEGIN
    CURUPDATE1 OPEN;
    Go SEARCH the CURUPDATE1 COLLECT in BULK IN REB 8000 limit;
    CLOSE CURUPDATE1;
    FORALL i IN 1.recs. COUNTY
    UPDATE MF_TJ
    THE MF_TJ VALUE. LINE_TYP = "NR."
    WHERE MF_TJ. UID_LO = (i) recs. UID_LO;-

    END;
    /


    DECLARE
    CURSOR CURUPDATE1 IS
    SELECT MF_TJ. UID_LO
    OF MF_TJ
    WHERE MF_TJ. DTYP (SELECT CD
    OF MF_DOC_TYPE
    WHERE MF_DOC_TYPE. DTYP_CAT = 'xx')
    AND MF_TJ. LINE_TYP IS SET TO NULL;
    TYPE of recs_type IS the TABLE OF CURUPDATE1% ROWTYPE directory INDEX;
    REB recs_type;
    BEGIN
    CURUPDATE1 OPEN;
    Go SEARCH the CURUPDATE1 COLLECT in BULK IN REB 8000 limit;
    CLOSE CURUPDATE1;
    FORALL i IN 1.recs. COUNTY
    UPDATE MF_AJ
    THE MF_AJ VALUE. LINE_TYP = "NR."
    WHERE MF_AJ. TJ_UID_LO = (i) recs. UID_LO;-
    END;
    /

    Is there a way I can just use pl/sql block using bulk collect?

    Thank you very much

    Hi 5181139

    As Paulzip and Jarkko Turpeinen have pointed out, you could do it using only SQL...

    This is a course using COLLECT in BULK:

    DECLARE
       blimit CONSTANT PLS_INTEGER := 500;
       CURSOR curupdate1 IS
          SELECT MF_TJ.UID_LO
          FROM   MF_TJ
          WHERE  MF_TJ.DTYP IN (SELECT CD
                                FROM MF_DOC_TYPE
                                WHERE MF_DOC_TYPE.DTYP_CAT = 'xx')
          AND MF_TJ.LINE_TYP IS NULL;
       TYPE c_arr IS TABLE OF curupdate1%ROWTYPE;
       c_rows c_arr;
    BEGIN
       OPEN curupdate1;
       LOOP
          FETCH curupdate1 BULK COLLECT INTO c_rows LIMIT blimit;
          FORALL i IN c_rows.FIRST..c_rows.LAST
             UPDATE MF_TJ
             SET    MF_TJ.LINE_TYP = 'NR'
             WHERE  MF_TJ.UID_LO = c_rows(i).uid_lo;
    
          FORALL i IN c_rows.FIRST..c_rows.LAST
             UPDATE MF_AJ
             SET    MF_AJ.LINE_TYP = 'NR'
             WHERE MF_AJ.TJ_UID_LO = c_rows(i).uid_lo;
          EXIT WHEN c_rows.COUNT < blimit;
       END LOOP;
       CLOSE curupdate1;
    END;
    

    See you soon,.

    Gas

  • Open the pl/sql block pop title request page

    Hi all

    Can someone show me the correct syntax for opening a page of the application in a window popup using
    of htp.p of pl/sql with (parameters of the page.) or local variables of the pl/sql block?

    And also how can force you a refresh of the page parent once the pop-up was closed.

    Any help would be appreciated.

    Kind regards
    Cleo

    Hello

    To generate a link to a pop-up window on your parent page:

    htp.p(' <a href="javascript:callPopup('||:P1_ID|| ')" > ');
    

    And add this in the header html on your parent page:

    <script type="text/javascript" >
    
    function callPopup(recordId){
     var url;
      url = 'f?p=&APP_ID.:POPUPPAGEALIAS:&APP_SESSION.::::P_RECORD_ID:' + recordId;
      w = open(url,"textarea","Scrollbars=1,resizable=1,width=800,height=600");
      if (w.opener == null)
      w.opener = self;
      w.focus();
    }
    
    </script >
    

    And to refresh the page parent after the closure of the pop-up window, add to the html on your popup page header:

    <BODY onUnload="javascript: window.opener.location.reload(true);">
    
  • Ignore the error and continue the pl/sql block

    Dear all,

    Please help me to fix the script below.

    I had an obligation to write a pl/sql that will handle the update instructions.

    For example:
    A table that contains 10 rows of data. Through pl/SQL block, I update the 10 rows (or a smaller number of lines).
    Now, the scenario is by updating registration / line 4, oracle has met an error and then oracle leave pl/sql block and cancel the transaction.

    My requirement here is, by updating the records, if oracle encounters an error, it must raise an error or ignore the record and continue to process records. Oracle wouldn't pl/sql block.

    We are using oracle 10g.

    Thank you
    KODS

    As has already been suggested, you might check DML ERROR LOGGING

  • Select the query within the PL/SQL block.

    Hello Experts,

    I'm just a beginner with PL/SQL.
    If I write a select query of client like fire against a database and SQL dev, it gives me result.
    For example: select * from employee;

    Now suppose that when I use the same query within a PL/SQL block:
    Declare
    Start
    Select * from employee;
    end;
    /
    It gives error during execution, by mentioning that an INTO should etc...
    I have my doubts here:
    1. is it impossible to use a simple select statement within a PL/SQL block (If yes why?)

    I know it's a very basic question, I tried to search it on the forum but could not find the thread, please redirect me to the link if it is already the answer.

    Please read this first. may ask why?

    http://docs.Oracle.com/CD/B28359_01/AppDev.111/b28370/TOC.htm

  • Error in the PL/SQL procedure

    Kindly suggest how to correct the error in below given procedure
    
    DECLARE
       l_error   VARCHAR2 (4000);
    BEGIN
       FOR i IN 1 .. apex_application.g_f02.COUNT
       LOOP
          IF   (apex_application.g_f18(i)) IS NOT NULL
           AND (apex_application.g_f19(i)) IS NULL
           AND (apex_application.g_f20(i)) IS NULL
           AND (apex_application.g_f21(i)) IS NULL
          THEN
             l_error :=' Enter values for column  19,20,21 ';
          END IF;
       END LOOP;
     
       RETURN (l_error);
    END;
     
    I get the error - In a procedure, RETURN statement cannot contain an expression

    user12957777 wrote:

    Kindly suggest how to correct the error in below given procedure
    
    DECLARE
    l_error   VARCHAR2 (4000);
    BEGIN
    FOR i IN 1 .. apex_application.g_f02.COUNT
    LOOP
    IF   (apex_application.g_f18(i)) IS NOT NULL
    AND (apex_application.g_f19(i)) IS NULL
    AND (apex_application.g_f20(i)) IS NULL
    AND (apex_application.g_f21(i)) IS NULL
    THEN
    l_error :=' Enter values for column  19,20,21 ';
    END IF;
    END LOOP;
    
    RETURN (l_error);
    END;
    
    I get the error - In a procedure, RETURN statement cannot contain an expression
    

    You are in an anonymous PL/SQL block. By definition, they cannot return no matter what... you create a function if you want to use a RETURN order you are trying.

  • Errors in the schema SQL TestStand 4.1.1

    I am trying to create a new MSDE 2005 SQL Server database using the new schema of TestStand 4.1.1. I've used the SQL Server stored procedure to generate a .sql file, and then run this SQL file. I get several errors similar to the following:

    > CREATE TABLE STEP_RESULT (ID uniqueidentifier PRIMARY KEY, UUT_RESULT uniqueidentifier, STEP_PARENT uniqueidentifier, int ORDER_NUMBER, STEP_NAME varchar (255), STEP_TYPE varchar (255), STEP_GROUP varchar (32), STEP_INDEX int, STEP_ID varchar (32), STATUS varchar (255), REPORT_TEXT varchar (255), int, varchar ERROR_MESSAGE ERROR_CODE (255), CAUSED_SEQFAIL bit, MODULE_TIME float, float TOTAL_TIME) Int NUM_PASSED int NUM_LOOPS, int NUM_FAILED, int ENDING_LOOP_INDEX, int LOOP_INDEX, int INTERACTIVE_EXENUM, CONSTRAINT STEP_RESULT_FK FOREIGN KEY (UUT_RESULT) REFERENCES (ID))
    Command failed with the following error...:
    Line 1: Syntax incorrect close '('.) (- 2147217900)

    I tried to run this statement in both MSDE and through the viewer of TestStand database with similar results. Everyone knows this problem or have any ideas?

    Function to generate the SQL files from a schema does not always perfect SQL statements, but closer you get to where you need to be to try to create it from scratch. Have you thought to look at the default SQL files included with the product, specifically the file "SQL Server Create Stored Proc result Tables.sql" located in the directory "\Components\Models\TestStandModels\Database?" It is a file that should work out of the box for the default schemas for SQL server and MSDE. Other SQL files for other schemas by default, and there are older SQL files for previous versions in the subdirectory 'previous patterns (2.x - 4.0).

  • Error during the deployment of Composite using BPEL2.0

    Getting error while deploying the server when I use the Java Embedded below.

    Included in the jar file of the class of AssetMetadataMessage under "Oracle_SOA1/soa/modules/oracle.soa.ext_11.1.1" and checked "Manifest.MF" file too

    The same code with slight modifications associated with BPEL1.1 works well Pls shed some light.

    BPEL

    " < import importType = ' http://schemas.Oracle.com/BPEL/extension/Java "location="java.rmi.RemoteException"/ > "

    " < import importType = ' http://schemas.Oracle.com/BPEL/extension/Java "location="java.rmi.ServerException"/ > "

    " < import importType = ' http://schemas.Oracle.com/BPEL/extension/Java "location="java.util.Properties"/ > "

    " < import importType = ' http://schemas.Oracle.com/BPEL/extension/Java "location="javax.naming.Context"/ > "

    " < import importType = ' http://schemas.Oracle.com/BPEL/extension/Java "location="javax.naming.InitialContext"/ > "

    " < import importType = ' http://schemas.Oracle.com/BPEL/extension/Java "location="javax.naming.NamingException"/ > "

    < extensionActivity >

    < bpelx:exec name = "Java_Embedding1" language = "java" >

    <! [CDATA [/ * write your java code below for example]]

    System.out.println ("Hello, World");

    */

    try {}

    Properties props = new Properties ();

    String url = "rmi://xx.23.60.233";

    String port = '9555 ';

    Server String = "XXServer";

    props.setProperty (Context.INITIAL_CONTEXT_FACTORY,

    "com.sun.jndi.rmi.registry.RegistryContextFactory");

    props.setProperty (Context.PROVIDER_URL, url + ":" + port);

    InitialContext context = new InitialContext (props);

    XXInterface c = (XXInterface) context.lookup (server);

    ADI of string;

    Province of string;

    ProvID chain;

    Boolean provIS.

    String folderName;

    Boolean condition;

    ADI = (String) getVariableData ("ADIString");

    Prov = (String) getVariableData ("Provider");

    provID = (String) getVariableData ("ProviderID");

    provIS = (boolean) getVariableData ("ProviderIs");

    folderName = (String) getVariableData ("OriginalFolderName");

    ASM AssetMetadataMessage = new AssetMetadataMessage();

    asm.setMetadata (adi);

    asm.setProvider (Prov.);

    asm.setProviderID (provID);

    asm.setAdult (isAdult);

    asm.setSourceOriginalFolderName (folderName);

    Status = (Boolean) c.contentMetadataImport (ASM);

    setVariableData ("RMIStatus", status);

    } catch (ServerException is) {}

    TODO: Add catch code

    se.printStackTrace ();

    } catch (RemoteException re) {}

    TODO: Add catch code

    re.printStackTrace ();

    } catch (NamingException don't) {}

    TODO: Add catch code

    ne.printStackTrace ();

    }] >

    < / bpelx:exec >

    < / extensionActivity >

    Error:

    [17: 02:50] HTTP error code returned [500]

    [17: 02:50] Error Message from the server:

    There was a deployment of the composite on soa_server2 error: operation failed - Member(Id=2,_Timestamp=2014-03-21_15:31:37.059,_Address=XX.26.75.8:8090,_MachineId=8295,_Location=site:,machine:XX01,process:26746,_Role=WeblogicServer):Error occurred during the deployment of the component: XX_Adaptor to service engine: implementation.bpel, for composites: XX_Adaptor: ORABPEL-05250

    Suitcase BPEL deployment by mistake.

    Problem solved.

    The question is when we use to get getVariableData, this returns the type of java.lang.object in java, and when we attribute to boolean directly it gave error. So used to rectify below code

    Fix a

    Boolean ProvIs = Boolean.valueOf ((getVariableData ("ProviderIs")) m:System.NET.SocketAddress.ToString ());

    A bad

    Boolean ProvIs is getVariableData ("ProviderIs");.

  • to change the pl/sql block to get the value of the user

    In this code rather than affect the value of the SID in the block, I want to get the sid of the user.

    Help, please.

    Oracle Database 10 g Express Edition Release 10.2.0.1.0 - product
    PL/SQL Release 10.2.0.1.0 - Production
    CORE 10.2.0.1.0 Production
    AMT for 32-bit Windows: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production

    declare

    v_sname t1.sname%type;

    v_issue_date t3.issue_date%type;

    v_book_title t2.book_title%type;

    v_book_id t2.book_id%type;

    cursor c1 is

    Select t1.sname, t3.issue_date, t2.book_title, book_id

    join T1 T3

    using (SID)

    Join t2

    using (book_id)

    where sid = 1;

    Start

    Open c1

    loop

    dbms_output.put_line (v_sname |) » '  || v_issue_date | » '  || v_book_title | ' ' || v_book_id);

    extract the c1 in v_sname, v_issue_date, v_book_title, v_book_id;

    When exit c1% notfound;

    end loop;

    Close c1;

    end;

    /

    Thank you

    If I set up a script that I want to pass a value, I just a configuration variable and name it and use it very similar to a procedure or function. Makes it easy to implement a procedure/function, or to convert a function/procedure in a PL/SQL block for test/debugging with relatively few changes to the code inside:

    declare
       in_sid  number  := to_number('&1');
    
       v_sname t1.sname%type;
       v_issue_date t3.issue_date%type;
       v_book_title t2.book_title%type;
       v_book_id t2.book_id%type;
       cursor c1 is
          select t1.sname, t3.issue_date, t2.book_title, book_id
          from t1 join t3
          using(sid)
          join t2
          using(book_id)
          where sid=in_sid;
    begin
       open c1
       loop
          dbms_output.put_line( v_sname ||' '  || v_issue_date ||' '  || v_book_title || ' ' || v_book_id);
          fetch c1 into v_sname, v_issue_date, v_book_title, v_book_id;
          exit when c1%notfound;
       end loop;
       close c1;
    end;
    /
    
  • Declarations of error in the PL/SQL Code

    Hi all:

    I have a routine of PL/SQL that I need to add "Error Statements" in case something thing errors when it is run, the user will know and be able to solve the problem. Here's a copy of what I need to run. Is a unique it will only be run once and when it is finished without error, it will not be used again, but when it ran inside TOAD / TORA / SQLPlus, how to display an error to the user in case something goes wrong? I know it's probably a very simple thing to do, but I come from SQL Server and only learn PL/SQL - Oracle and I do not know how to do this. Any help would be greatly appreciated.

    DECLARE
    -----------------------------------------------------------------------------------------------
    -Local Variables
    -----------------------------------------------------------------------------------------------
    l_gm_master_label VARCHAR2 (20);
    l_active_flag VARCHAR2 (1);
    l_currdate DATE;
    l_comp_id VARCHAR2 (10);
    l_site_id VARCHAR2 (12);
    l_gm_master_id NUMBER;
    BEGIN
    -----------------------------------------------------------------------------------------------
    -Set default values
    -----------------------------------------------------------------------------------------------
    l_gm_master_label: = 'DMLogic001 ';
    l_active_flag: = 'n';
    l_currdate: = SYSDATE;
    l_comp_id: = 'XE ';
    l_site_id: = "OHIO."
    l_gm_master_id: = 0;
    -----------------------------------------------------------------------------------------------
    -Get the next value
    -----------------------------------------------------------------------------------------------
    SELECT
    trn_gm_master_seq. NEXTVAL
    IN
    l_gm_master_id
    Of
    Double;
    -----------------------------------------------------------------------------------------------
    -Insert generic Gray number master record who will join all the serial numbers DMLogic
    -----------------------------------------------------------------------------------------------
    INSERT INTO ebiznet.trn_gm_master
    (gm_master_id,
    gm_master_label,
    active_flag,
    CURRDATE,
    identifiant_composant,
    Site_ID)
    VALUES
    (l_gm_master_id,
    l_gm_master_label,
    l_active_flag,
    l_currdate,
    l_comp_id,
    l_site_id);
    -----------------------------------------------------------------------------------------------
    -Insert the records
    -----------------------------------------------------------------------------------------------
    INSERT INTO ebiznet.trn_gm_serial_number
    (gm_serial_number_id,
    gm_master_id,
    gm_serial_number,
    received_by,
    received_date,
    picked_by,
    picked_date,
    ebiz_sku_no,
    identifiant_composant,
    Site_ID,
    ebiz_ord_no,
    interface_date)
    SELECT
    trn_gm_serial_number_seq. NEXTVAL,
    l_gm_master_id,
    S.Serial_number,
    1,
    S.CREATION_DATE,
    1,
    S.CREATION_DATE,
    S.ebiz_sku_no,
    l_comp_id,
    l_site_id,
    O.ebiz_ord_no,
    S.interface_date
    Of
    dmlogic.trn_rm_serial_number S
    INNER JOIN ebiznet.trn_ordhead O ON S.ord_no is O.ord_no;.
    ----------------------------------------------------------------------------------------------
    -Commit the changes
    ----------------------------------------------------------------------------------------------
    COMMIT;
    -----------------------------------------------------------------------------------------------
    -Rollback If an error occurred
    -----------------------------------------------------------------------------------------------
    EXCEPTION
    WHILE OTHERS THEN
    ROLLBACK;
    END;

    Remove WHEN OTHERS will allow exceptions to access the user and halt execution. You get a descriptive message and the line in PL/SQL, where it has occurred.

    In very rare occasions when OTHERS WHEN is inevitable, RAISE re-lift the exception and stop running.

    You can increase your own exceptions to conditions specific to your application with RAISE_APPLICATION_ERROR(). (Syntax and parameters can be found in the documentation)

  • Error in the pl/sql process

    Hi guru

    I get the error message like: -.

    "1 error has occurred."
    ORA-06550: line 6, column 32: PLS-00103: encountered the symbol "&" when expecting one of the following values :), * & - + / in rem rest mod and/or as | multiset.


    BEGIN

    IF (: P3_ID! = null & &: P3_ID! = ") THEN
    INSERT
    ON THE OTHER
    INSERT
    END IF;

    END;


    I get the error under the present: - < b > (: P3_ID! = null & &: P3_ID! = ") < /b >, I am writing to you as: - < b > (: P3_ID! = null) < /b > the pl/sql process works very well, so how can specify two different conditions with & & operators in the middle.


    Thanks for your help


    Kind regards
    Kumar

    In my opinion, as AND would be the correct logical operator.
    Why not just use a declarative validation? Also, I don't think you can compare to NULL - you can say whether a value IS NULL or IS NOT NULL.

    Georger

    gkkumar wrote:
    Hi guru

    I get the error message like: -.

    "1 error has occurred."
    ORA-06550: line 6, column 32: PLS-00103: encountered the symbol "&" when expecting one of the following values :), * & - + / in rem rest mod and/or as | multiset.

    BEGIN

    IF (: P3_ID! = null &: P3_ID! = ") THEN
    INSERT
    ON THE OTHER
    INSERT
    END IF;

    END;

    I get the error under the present:- (: P3_ID! = null &: P3_ID! = "), if I write like:- (: P3_ID! = null) pl/sql process works very well, so how can specify two different conditions with & operators in the middle.

    Thanks for your help

    Kind regards
    Kumar

  • Can't empty trash - error that the file is in use

    I noticed a recent bug that seems to be the case with PDFs, I opened in preview. When I close the file (cmd + w), but not to leave the program overview and then remove the file, when I go to empty the trash, I get an error message that the operation cannot be completed because the file is always used. I am only able to empty the trash immediately after a restart. I wonder if there is a way to fix this error!

    Thank you!

    Hulahooop,

    Right-click on the file in the trash, then select 'delete immediately... '. »

  • Error message: the files required to use Microsoft Update are longer registered or installed on your computer.

    As I never had problems with Microsoft Updates in the 3 years that I've owned this computer, I am confused now what has happenned.

    My laptop has a valid copy of Windows XP Professional and has always already been updated successfully, both manually by using the web page for the custom updates and so automatically.

    Can someone please shed some light on the question and how to fix it?  I obviously don't want to need to format this computer.

    I still regularly ran my anti-virus (N360 which is always updated) software and windows defender.  I have also always used Spybot S & D.  None of the mentioned software found no major problems, as I expect, because they are supposed to prevent intrusions. I also run the current Microsoft malicious software removal tool as an extra precaution.

    My problem is:

    After you perform a system restore to an earlier date on my laptop, I wanted to check windows update to make sure that all my security updates are in and up to date.  I opened the page to update as normal, then I accept the license agreement and I continued to the next screen.  Normally, I don't have to do this, he usually directly goes to the page.

    Then, I got this error message:

    The files required to use Microsoft Update are longer registered or installed on your computer.

    It is possible for me to choose
     "register or reinstall the files now (recommended)".
    However when I try this option I'm headed to the next web page where I get another error message:

    403-Forbidden: access is denied. You don't have permission to view this directory or page using the credentials you supplied.

    Could be a problem of hijackware but first see this archived thread WinXP general newsgroup: http://groups.google.com/group/microsoft.public.windowsxp.general/browse_frm/thread/4789b22822070e68/ee1886e36b8d6608?#ee1886e36b8d6608

    QED: Have you installed an update to wireless card that had been offered by Windows Update, the other day? ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft

  • How to execute the pl/sql block from a file

    Hi all
    can someone tell me how to execute a pl/sql block to a file.it does contain no procedures.it is of the form
    -Start
    -says
    -end;

    Thanx

    Ok.. If the time points? :)

    See you soon!
    Bobin

  • My first while loop inside the PL/SQL block does not, please help

    Hello

    I'm new to PL/sql and struck PL SQL blocks, please help solve this problem.

    declare

    constant v_A number: = 10;
    constant number j: = 3;

    BEGIN

    WHILE j < v_A
    LOOP
    DBMS_OUTPUT. Put_line ('Hai');
    END LOOP;
    END;

    Please help as how to solve this problem.

    Thanks in advance.

    You cannot declare j as in 'permanent' If you want to increment its value. better go to another variable if you intentionally want constant j.

    Something like this:

    declare
    v_A number constant:=10 ;
    j number constant := 3 ;
    i number;
    BEGIN
    i := j;
    WHILE i < v_A
    LOOP
    i := i + 1;
    DBMS_OUTPUT.PUT_LINE('Hai');
    END LOOP;
    END;
    

    ... Vivek

    Published by: Vivek 21 Sep, 2010 02:54

Maybe you are looking for

  • MacBook Air Flash storage problem

    So I just got a Macbook air mid 2012. It has 128 GB flash storage whilst running the latest Mac OS X Version 10.11.1 and the problem is that it is either showing wrong info or a lot of storage was taken over by something unknown. Apps took more than

  • Windows XP, keyboard tape number in place of letters__

    My three year old was playing with my laptop.  I try to type letters and is randomly put in numbers.  I can't find help on this laptop because I can not type words!  Help, please.

  • What happens when I run recovery disks in the computer?

    Original title: .vista I want to run my vista recovery disk, what actually happens when I do this.

  • problem installing Windows while trying to download itunes

    I am trying to download itunes and I always get an error to Windows Installer. I tried all of the corrective actions; uninstalling, reinstalling, revo, etc.. I don't know what to do now. The computer is an Acer. Windows Vista. 32 bit OS. x 86. Trying

  • Cannot bar resolution move to set the screen resolution

    I just installed vista and everything was huge! I went screen resolution under Customize and there is no other options on the scroll bar expect I am the one on which is 640 X 480 at an average of 16-bit color, I tried to update the drivers for the ca