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;

Tags: Database

Similar Questions

  • 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 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 change the location where the scan of the computer updates the file?

    I would like to know how to change the location where the scan updates the file.

    HI ROT2,.

    It depends what printer and the software you use?

    Normally, you will find a 'save to file Option save' like the screenshot below.

  • Tecra A8 - how to use the Clipboard?

    How to use the Clipboard?

    I don't know is it instaled when I use the recovery disc.

    After 3 years I do not know how to us it.

    Can help the somebady by PFIC step-by-step instructions

    Hello

    I have no idea of what you want to do and what should I Clipboard Viewer tell you exactly, but AFAIK the Clipboard Viewer are a part of Win XP.
    It s located in the folder C:\Windows\system32
    The file named clipbrd or clipbrd.exe

    You can also start typing Clipboard Viewer CLIPBRD in RUN.

    Welcome them

  • How to use the webcam

    I have an Acer laptop AS 5740, I'm useless with all the technology, can someone tell me how to use the web cam it please?

    Hello

    If it is a built-in webcam, the instructions for use of the device will vary between manufacturers.

    Your best resource for this information is Support of Acer.

    Here is a link to the product page for your computer. This page contains all the documentation for this system and devices.

    Acer support: downloads & Documents - Support Notebook / sucks / Aspire 5740:
    http://support.Acer.com/us/en/product/default.aspx?tab=2&modelId=1870

    If you cannot find the information in this location, use the following link to request to Acer.

    Acer Support - answers, E-Mail, Chat - find answers: http://acer.custhelp.com/app/answers/list

    Concerning

  • How to change the location of storage in Lightroom 3.6. ?

    How to change the location of storage in Lightroom 3.6. ?

    I use my internal hard drive NTFS of my MacBook Pro as my Lightroom 3.6 storage location. run installation of Snow Leopard now but my photos too big get data now. I have two big and fast disks external eSATA hard now I want to use for my data/photos. I know how to copy data from one hard drive to another, but I don't know how to easily change the parameters in connection with Lightroom. I always want to look at all the pictures on my MacBook Pro, but do not want to save the photos on my internal hard drive more. Is it not possible to have the Lightroom program on my internal hard drive but data on twice on two discs hard different extermal? If I look at Lightroom - the catalog settings - I see that the location of the internal hard drive is my storage location now, but I have my two external hard drives do not appear as folders. Why? How do I change this so that external hard drives appear in Lightroom and I can watch all my fotos immediately (sometimes using external hard drive 1 and sometimes using external hard drive 2)?

    My external hard drives are in HFS +, but I use Paragon Software so that there should not be no problem to read and write data (I also use Final Cut Express to my drives external hard are HFS + and not NTFS).

    I want impert lots of data from a CD - do I need to first copy the fotos on my external hard drive, and then import it into Lightroom or is it easier to import data directly from the CD in Lightroom so that I don't have to name the files twice?

    I see that I must sort the fotos of the CDs in different folders and an opportunity to do it in the Finder to my MacBookPro. In Lightroom I don't want to have to click on each of the hundreds of photos to be able to put it in the right folders... But how import only a part of a CD quickly in the right folders (newly created)?

    Best regards, Karin

    The instructions do not all "creating a second folder.

    The instructions are: "In the import dialog box, select Add, and then on the left in the Source Panel, select the appropriate folder."

  • How to use the same services-config for servers the and remote.

    My flex project works very well using the bottom but when I download my flash on the server I do not work, all the files and related paths are the same execpt remote is a linux server.

    <? XML version = "1.0" encoding = "UTF-8"? >
    <>services-config
    < services >
    < id = 'amfphp-flashremoting-service' service
    Class = "Flex.Messaging.services.RemotingService"
    messageTypes = "flex.messaging.messages.RemotingMessage' >"

    < destination id = "amfphp" >
    <>channels
    < Ref channel = "my-amfphp" / >
    < / channels >
    Properties of <>
    < source > * < / source >
    < / properties >
    < / destination >
    < / service >
    < / services >
    <>channels
    < channel-definition id = "my-amfphp" class = "mx.messaging.channels.AMFChannel" >
    " < endpoint uri = ' http://localhost/domainn.org/AMFPHP/gateway.php "class="flex.messaging.endpoints.AMFEndpoint"/ > "
    < / channel-definition >
    < / channels >
    < / services-config >

    I think the problem is the line


    " < endpoint uri = ' http://localhost/domainn.org/AMFPHP/gateway.php "class="flex.messaging.endpoints.AMFEndpoint"/ > "

    but I don't know how to use the same services-config for servers the and remote.

    I'll back up a bit.

    Breakpoint URLS are defined as follows in the services - config.xml:

    https://{server.name}:{server.port}/{context.root}/messagebroker/amfsecure

    The meaning of each of the tokens is clearer when we see them as part of a complete url. If your context root is set to http://localhost , then I have no idea how your application runs in any environment.

    If you leave the server.name and server.port chips in your configuration file, then they will be replaced when executing according to the location from which your application is served. However, the context.root token is replaced at the time of the compilation based on the value that you specify in Flex Builder or when calling mxmlc.

    In order to reuse your file services - config.xml, you must use the same context-root on your development environment and to your deployment environment.

  • How to use the partition instead of group by?

    Hello

    I'm unable to use the partition by clause in the following cases,

    the column with null values other_number contains 10 records in 'une_table '.
    5 records where the date 01/11/2009, item_code = 1
    5 records where the date 01/10/2009, item_code = 2

    This query returns all of the records of 10, (which assume back 2)
    SELECT count (a.anumber) on (partition TO_char(a.some_date,'MM'), a.item_code) AS i_count, a.item_code,.
    TO_char (a.some_date, 'MM')
    Of une_table
    WHERE to_char (a.some_date, 'yyyy') = 2009
    AND a.other_number IS NULL


    Works great if I wrote like this,
    SELECT count (a.anumber) AS i_count, a.item_code,.
    TO_char (a.some_date, 'MM')
    Of une_table
    WHERE to_char (a.some_date, 'yyyy') = 2009
    AND a.other_number IS NULL
    TO_char(a.some_date,'MM') group, a.item_code

    How to use partition of in this case?

    Hello

    Almost all of the aggregate functions (the ones you use in a GROUP BY query) have analytical equivalents.
    You seem to have already discovered that, regardless of the values returned by
    a comprehensive funcition using ' GROUP BY x, y, z "can also be found
    an analytical function by using "PARTITION BY x, y, z".

    Aggregate queries to collapse the result set.
    The COUNT aggregate function:

    SELECT    deptno
    ,         COUNT (*)   AS cnt
    FROM       scott.emp
    GROUP BY  deptno
    ;
    

    indicates how many 14 employees are in each of 3 departments.
    The fact the analytical COUNT function:

    SELECT    deptno
    ,         COUNT (*) OVER (PARTITION BY deptno)   AS cnt
    FROM       scott.emp
    ;
    

    but the first query produces 3 production lines, the second query produced 14.
    You could get 3 rows of output using the analytical function and SELECT SEPARATE , but it is inefficient.

    Which should you use? As with many other things, the answer depends on what data you have and what results you want from this data.
    If you want has collapsed of results (one line per group), it is an indication of striong you'll want features global, not analytical.
    If you want a row of output for each row in the table, it is a strong indication that you'll want to analytical functions.

    If you have a specific question, ask. Post some sample data and the results desired from this data, as Rob has said.

    There is another important difference between the aggreate and analytical functions: analytic functions can easily be restricted to a window , or a subset DataSet. It's something like a WHERE clause and a WHERE clause applies to the entire request: a condition of wondowing applies only to a single line.
    If you need calculate a SUM of lines with a previous of this line order_date , or an average of last 5 lines, then proabably you want to use the analytical function.

  • With no headphone jack, how to use the iPhone in my car 7

    Okay, so here's the challenge.  I have a power source and a headphone and not Bluetooth.  It works perfectly with iPhones before 7.  But with 7, it isn't possible to use the same configuration I had for years.  I own my car, and I have no interest in buying a new car just to support a new phone.  And since this will be a problem for the years to come if I stay with Apple, I would like to know what are the solutions are available.

    So, how to use the new iPhone 7 while remaining responsible and using my car speakers?  Dongles Bluetooth that I need to reload, it's probably not.

    Thus, looking for ideas that might have people.  I can't be the only one with this concern.

    It's almost a certainty that a third party adapter will appear quickly. The new Macbook has a single port usb - c and people asked the same question, 'how to load and use USB at the same time." There are today dozens of solutions for the Macbook, and then it will be with the iPhone 7. An adapter with a 3.5 mm jack and a port of loading Lightening would be my guess. Kickstarter entrepreneurs are probably already working on it.

  • How to use the capture and the print button

    I tried to figure out how to use the capture and the "print" button, or add or what you call. I press it and the whole page of a different color changes, so I try to cut the section I want but I don't know how to send it to the printer. Can someone help me with this. I'm not at savvy with tech stuff, but when I find a recipe or something and it doesn't have an option to print a certain area, I can't understand how to use it?

    Thank you

    Andi Starbuck

    That happens to me is, I click and drag to make a rectangle of yellow selection, and as soon as I raise my finger on the mouse button, the part I've selected is captured as an image, a new tab opens and preview before printing, the image display. I can use the installation of the Page or simply print. But if I close the preview, this temporary image vanishes and I'm back on the page where I started. You see something different?

  • How to use the activity monitor to remove MegaBAckup on my mAc Book PRO?

    How to use the activity monitor to remove MegaBAckup on my mAc Book PRO?

    Download and run MalwareBytes. Malwarebytes was developed by one of our colleagues here to ASC. He received rave reviews and is on the more proven anti-malware for Mac software.

  • How to use the utility disk first aid for hard drive internal el captian

    How to use the utility disk first aid for hard drive internal el captian

    Select the drive and click first aid.

    If something is not repairable because this is the system drive, then you need to start using the recovery partition and run disk utility it.

  • How to use the Print Screen function?

    I've seen various descriptions of how to use the print screen function.

    It would be nice to actually tell one that works.  None have worked for me.

    [Fn] and Prt SCr does not work.

    CTRL and Prt SCr does not work.

    CTRL, Alt, and Prt SCr does not work.

    [Fn], Ctrl and Prt SCr does not work.

    If anyone knows the correct method to activate the screen capture function which would be a good thing.

    From the looks of things, HP has a big problem with this function.

    Here's a microsoft articleon the use of the screenshot function.

    This should answer your questions.

    Thanks for taking a peek.

  • How to use the acronym

    How to use the acronym instead of this?

    Please explain

Maybe you are looking for

  • Satellite C50D - A - 13 G off when disconnected

    Hello I have a new laptop, but when I unplug it from the wall outlet or turn off the sector it shuts down immediately. The icon at the bottom right however says it is fully charged. Is there a way to fix this, or is the broken battery? Thank you

  • Best 3D visualization

    Hello Experts! I wonder about a sequel. I would like to display the 3D surface in a real-time application. When I took a ride in the LV samples, I've seen a lot of examples. I tried CWGraph3D. This is a very cool, easy to use and configure control. B

  • How can I delete imesh

    How can I delete imesh

  • Chromebook: Printing to the HP Chromebook 8600 office

    I have never had trouble printing from my Chromebook via the Google cloud to my officejet 8600, but it does not work properly now.  When I try to print, it gives me an error message on the printed page, "HP e-print is not available at this time."  I

  • Configuration Linksys WPSM54G on new laptop with Win7

    Using a Linksys WPSM54G. Working on my old WinXP, bought a new laptop with Win7. Tried to set up as a TCPIP will still not connect. Have seen a lot of posts on this issue, but can't get it on my pc.