Recently updated records to be sent back

Hi,
procedure(i_dept in number, dept_cur out sys_refcursor)
is
begin
update emp set sal=sal+100 where dept=i_dept;
end;
in this procedure i want to send only the updated records back in dept_cur cursor.
lets say in 1st proc call 2 records updatd then i have send 2 records in cursor.
in 2nd call 4 records updated then have to send 4 records in curso. like that
question is how can i catch the recently updated records?
plese help.
Thanks

Are you looking for RETURNING clause..
Something like this based on the Primary Key of the table..Hope your data volume is not huge..
create or replace type num_tab as table number;
create or replace procedure p1(i_dept in number, dept_cur out sys_refcursor) is
  lt1 num_tab; 
  lt2 num_tab; 
begin
  update emp set sal=sal+100
  where deptno=i_dept
  returning empno bulk collect into lt1;
  open dept_cur for
    select ......
    from emp
    where empno in
          select COLUMN_VALUE
          from table(lt1)
end;If you need something else, pleas eexplain your exact business requirement..

Similar Messages

  • We used to get a 'whooshing' noise when we sent an eMail using mac Mail. This no longer happens. We recently updated to Mountain Lion 10.8.1  Can anyone throw light  on this please?    David

    We used to get a 'whooshing' noise when we sent an eMail using mac Mail. This no longer happens. We recently updated to Mountain Lion 10.8.1  Can anyone throw light  on this please?    David

    Hi
    I am sorry to see you are having problems with your BT Service
    I suggest you contact the forum mods they should be able to get this problem sorted for you this is a link to them http://bt.custhelp.com/app/contact_email/c/4951
    They normally reply by email or phone directly to you within 3 working days they will take personal ownership of your problem until resolved and will keep you informed of progress
    They are a UK based BT specialist team who have a good record at getting problems solved
    This is a customer to customer self help forum the only BT presence here are the forum moderators
    If you want to say thanks for a helpful answer,please click on the Ratings star on the left-hand side If the reply answers your question then please mark as ’Mark as Accepted Solution’

  • Since purchasing the Note 3 in October i have had nothing but issues. I went through all the steps and eventually I was sent a different phone, which was working for the most part until the recent upgrade. Now I am back to the old issues, no service, it a

    Since purchasing the Note 3 in October i have had nothing but issues. I went through all the steps and eventually I was sent a different phone, which was working for the most part until the recent upgrade. Now I am back to the old issues, no service, it actually says not moblie network available, when everyone else in my family has coverage and are on my plan with iphones. I am missing text messages and dropping calls left and right. This is unacceptable for the cost of this phone and my service. I have did a hard reset etc. What else can I do??

    Use the trackpad to scroll, thats what it was designed for. The scroll bars automatically disappear when not being used and will appear if you scroll up or down using the trackpad.
    This is a user-to-user forum and most people will post on here if they have problems. You very rarely get people posting to say there update went smooth. The fact is the vast majority of Mountain Lion users will not be experiencing any major problems with the OS, or maybe with apps which are not compatible, but thats hardly Apple's fault if developers don't update their apps.

  • My iPhone recently broke so I was sent a brand new iPhone to replace it, however, since receiving this phone, I cannot access anything which was previously backed up onto iCloud from my last iPhone. Please help me!

    My iPhone recently broke so I was sent a brand new iPhone to replace it, however, since receiving this phone, I cannot access anything which was previously backed up onto iCloud from my last iPhone. Please help me!

    If you are trying to restore to an iCloud backup, this has to be done during the initial setup process.  If your phone is already set up, you will have to go back to Settings>General>Reset and tap Erase All Content & Settings, then go back through the setup screens again and when given the option, choose Restore from iCloud Backup (see image below).  Be sure your phone is connected to wifi and your charger as this will take some time to complete.
    Also, your replacement phone must be running the same iOS version or higher to restore to your backup.  If you are running an older version of iOS than the device that was backed up, your backup will not be visible when you choose to restore to your iCloud backup.  If this is the case, you'll have to update your replacement phone first.

  • HT4623 I updated my iphone 4s on my computer - I lost a lot of pictures - it gave me messages that I had sent back in June and now it wont allow me to play any of my itunes on my phone - any got any solutions to what I should do? HELP

    I updated my iphone 4s on my computer - I lost a lot of pictures - it gave me messages that I had sent back in June and now it wont allow me to play any of my itunes on my phone - any got any solutions to what I should do? HELP

    I couldn't find the edit button on my original post so I am posting an update here.
    I have gone through more apps and have had good luck on all but one more.  And it's not that the app doesn't work, I am talking about the Yahoo Weather app, It works fine, but when you swipe between cities the screen lags a bit and it sometimes doesn't move between pages the way it should.  On iOS 7.1.2 it was smooth as butter but on iOS 8.0, not so much.  I will post a note in the app store to let them know.  I really like the Yahoo app better than the new stock app.
    I have been going through my games and they all work fine. Angry Birds (Original and Stella), Canabalt, Minecraft, Bejeweled 2, Silly Walks, PopWords, Doodle Jump, Deep Green all seem to work just fine. 
    Starbucks app works as it should. 
    I will stop back again next week after I have had the weekend to play with it in detail and post my thoughts again.

  • Before the recent updates to Firefox, clicking on the back button always brought me back to the same place on the page where I had been, but now it brings me to the top of the page. How do I restore the previous feature?

    Before the recent updates to Firefox, when I would go to another page in the same window and then clickon the back button, Firefox used to bring me back to the same place on the page where I had been, but now it brings me to the top of the page, meaning that I have to laboriously scroll down to the old place. How do I restore the previous feature?

    That change was made in Firefox 4, 6 months ago.
    Click-hold the unified Back / Forward button <br />
    or <br />
    right-click it to get the Back / Forward history for that tab.
    Or install this extension to get the old "drop-marker" button restored. <br />
    https://addons.mozilla.org/en-US/firefox/addon/backforedrop/

  • I recently updated my iPhone 4s to ios6, and lost 1200 odd contacts. I have a backup from about 4-5 months ago avaiable.  Can I add/update contacts from the back up rather than restore which i assume will literally delete any new contacts added...?

    I recently updated my iPhone 4s to ios6, and lost 1200 odd contacts. I recently sold my macbook air and also my mac book pro, so have no recent backups avaiable.  I have a backup from about 4-5 months ago available on an external hdd as a time machine backup.  Can I add/update contacts from the back up rather than restore?  The reason i wish to do this is because in the update i didnt lose any messages, so all of the people i have met and networked with since that last update those many months ago, i have in my messages listings.  They are all unidentified numbers at present but over time i will be able to work through the messages and based on the conversation recall who each was with.  Also, yesterday, some two weeks after the update had left my contacts list entirely empty... a vast majority just reappeard, though all of them are without any phone numbers, all just emails or facebook contacts.  This is the work of facebook not mac/ios6 isnt it...?  Any help here would be greatly apprecaited.  I am about 2 days from flying to canada and having those contacts would make life a lot easier.

    You should be syncing your contacts with an app on your computer or cloud service (iCloud, Gmail, Yahoo, etc), and not relying on a backup.  If you haven't been doing this, start now and then restore your old backup.  You will then be able to sync the new contacts back into the phone.  However, you will lose all messages, etc newer thant the backup.

  • Since recent updates, I have noticed that my apps close automatically when I am distracted. In some cases it is time consuming to sign back in and get back to the task I was doing. Is it possible to change a setting so the apps will stay open?

    Since recent updates of iOS, I have noticed when using my iPad that my apps close automatically when I have to leave the room or am otherwise distracted for a few minutes. It is sometimes time consuming to sign back in and get back to the task where i left off. Is there a setting I can change so it will keep the apps open until I am ready to close them? Thanks for your help.

    Did you have this problem before Restoring you iPad?
    If you did then did you restore with a backup. You may have reinstalled something that is conflicting in this back up
    If not then sounds like either something went array with the clean install or a hardware issue.
    I know it's long winded but have you tired a clean install then downloading the apps again?
    PJRS

  • My phone was recently updated to 8.1.  After the update, when text messages are sent when my phone is off, I no longer receive when my phone is turned on.  Is there something in Settings that needs to be changed?  I never had this problem before the updat

    My phone was recently updated to 8.1.  After the update, when text messages are sent when my phone is turned off, they no longer appear when I turn the phone on.  Is there something in Settings that needs to be changed?

    MetsFanGirl,
    Thanks for verifying. Are you having issues receiving both iMessages and standard text messages when they are sent when the phone is turned off? Try this and test... http://vz.to/1qjiOs7
    LindseyT_VZW
    Follow us on Twitter @VZWSupport

  • HT1338 my MAc Book PRO 13" Retina display will not update.  It crashes every time I try to do an update.  I have sent in the information on each update but so far nothing back from Apple.

    my MAc Book PRO 13" Retina display will not update.  It crashes every time I try to do an update.  I have sent in the information on each update but so far nothing back from Apple.  Also it does not matter what I am trying to update, the operating system, and application, each caused the same crash.   This mac book is less than a month old.

    That is the highest you will be able to go with 3g. You need 3gs or 4 to go any higher (multi processors and more memory needed).  Version 4.2.1 marks the end of your updates for that device.

  • I recently updated my iPhone to IOS 8 and it said I need the latest version of iTunes to sync and back up however my computer won't allow it what do I do !??  Anything helps!!!

    I recently updated my iPhone to IOS 8 and it said I need the latest version of iTunes to sync and back up however my computer won't allow it what do I do !??  Anything helps!!!

    If it's in recovery mode, the data is already gone. Why did you never back up your important data?

  • I have a question regarding my txt/alert tones. I recently updated my iPhone 5's software without first backing it up on iCloud or my computer (oops). After my phone finished updating, i lost the new ringtones and txt/alert tones i had bought.

    I have a question regarding my txt/alert tones. I recently updated my iPhone 5's software without first backing it up on iCloud or my computer (oops). After my phone finished updating, i lost the new ringtones and txt/alert tones i had bought. I connected my iPhone to my computer and sync'd it hoping that it could download my purchases from the itunes store and then put them back on to my phone but no such luck. When i look at my iphone on my computer and look at tones, they do not show up at all. However, if i click on the "On This iPhone" tab and click on "Tones" the deleted ringtones and altert tones show up...they are just grey'd out and have a dotted circle to the left of them. I also tried to go to the iTunes store on my phone and redownload them and it tells me that i have already purchased this ringtone and asks me if i want to buy it again. I press Cancel. I know when i do that with music it would usually let me redownload the song without buying it again but it wont let me with the ringtones...so how do i get them back? any help would be greatly appreicated

    Greetings,
    I've never seen this issue, and I handle many iPads, of all versions. WiFi issues are generally local to the WiFi router - they are not all of the same quality, range, immunity to interference, etc. You have distance, building construction, and the biggie - interference.
    At home, I use Apple routers, and have no issues with any of my WiFi enabled devices, computers, mobile devices, etc - even the lowly PeeCees. I have locations where I have Juniper Networks, as well as Aruba, and a few Netgears - all of them work as they should.
    The cheaper routers, Linksys, D-Link, Seimens home units, and many other no name devices have caused issues of various kinds, and even connectivity.
    I have no idea what Starbucks uses, but I always have a good connection, and I go there nearly every morning and get some work done, as well as play.
    You could try changing channels, 2.4 to 5 Gigs, changing locations of the router. I have had to do all of these at one time or another over the many years that I have been a Network Engineer.
    Good Luck - Cheers,
    M.

  • How can i display recent update/delete/insert records in form

    Hai !!!!
    i am new for forms,.......any body tell me, how can i display recent no of records updated or no of records deleted or no of records are inserted in a form. these records count are display in display items....give me detail explination......
    Subbu.....

    the easiest way is copy and paste the oracle-forms example from the OU.
    You need form-level-trigger ON-ERROR + ON-MESSAGE, POST-INSERT, POST-UPDATE, POST-DELETE, three global variables and a procedure:
    ON-ERROR
    handle_message( error_code, 'ERROR: ' || ERROR_TYPE || '-' || TO_CHAR(ERROR_CODE) ||': '|| ERROR_TEXT );
    ON-MESSAGE
    handle_message( message_code, MESSAGE_TYPE || '-' || TO_CHAR(MESSAGE_CODE) || ': ' || MESSAGE_TEXT );
    PROCEDURE handle_message( message_number IN NUMBER, message_line IN VARCHAR2 ) IS
    BEGIN
        IF message_number IN ( 40400, 40406, 40407 )
        THEN
          DEFAULT_VALUE( '0', 'GLOBAL.insert' );
          DEFAULT_VALUE( '0', 'GLOBAL.update' );
          DEFAULT_VALUE( '0', 'GLOBAL.delete' );
          MESSAGE('Save Ok: ' ||
            :GLOBAL.insert || ' records inserted, ' ||
           :GLOBAL.update || ' records updated, ' ||
           :GLOBAL.delete || ' records deleted !!!' );
          ERASE('GLOBAL.insert'); 
          ERASE('GLOBAL.update');
          ERASE('GLOBAL.delete');
        ELSE
             MESSAGE(message_line );
              END IF;
    END;
    POST-INSERT
    DEFAULT_VALUE('0', 'GLOBAL.insert');
    :GLOBAL.insert := TO_CHAR( TO_NUMBER( :GLOBAL.insert ) + 1 );
    POST-UPDATE
    DEFAULT_VALUE('0', 'GLOBAL.update');
    :GLOBAL.update := TO_CHAR( TO_NUMBER( :GLOBAL.update ) + 1 );
    POST-DELETE
    DEFAULT_VALUE('0', 'GLOBAL.delete');
    :GLOBAL.delete := TO_CHAR( TO_NUMBER( :GLOBAL.delete ) + 1 );try it
    Gerd

  • I recently updated my new iPhone by plugging it in to my laptop. However, it erased all of the texts, contacts and pictures associated with my phone prior to the update. How do I get that information back?

    I owned an iPhone 4s a year ago before I unfortunately lost it. I have since then bought the iPhone 5 but had not plugged it in to my computer yet to download any music. I plugged in my iPhone today to my laptop and my iTunes store stated that it registered that it was a new iPhone and asked if I wanted to restore or update my new iPhone with the information that was backed up on my old one. I chose yes, that I did want to restore the old information in to my new iPhone. However, now that I did that, my new iPhone does not have any of the contacts, texts or pictures that I had already on my new iPhone.
    I desperately want my information back that was lost on my new iPhone when I updated the phone. Is there any way to get those pictures and information back? I logged in to my iCloud account and it still did not help get my pictures, contacts or texts back.

    BarnsleyMif wrote:
    I have recently updated my software on the new iPhone and when it backed up it backed up to the old iPhone
    No such thing has occurred.  iPhones do not backup to one another.
    It is not possible to backup a different iPhone from the one being updated.
    If the iPhone was restored with a backup from a different device, restore it again from the correct backup.
    BarnsleyMif wrote:
    how can I get all my new stuff back and stop it from happening again?
    Pay attention when restoring the iPhone and select the correct backup to restore from.

  • I recently updated my phone to IOS 8.0.2 and now it wont turn on it just says to connect to itunes and when i do the only option it gives me is to restore iphone. It says it will delete all my media but i didn't do a back up what should i do?

    I recently updated my iphone 5 to IOS 8.0.2 and now it wont turn on it just says to connect to itunes and when i do the only option it gives me is to restore iphone because it is in "recovery mode". It says it will delete all my media but i didn't do a back up and i don't want to lose my photos, what should i do? (I never used iCloud to back them up either).

    If it's in recovery mode, the data is already gone. Why did you never back up your important data?

Maybe you are looking for

  • Core i3 mac not seeing power pc g4 imac in target disc mode

    I'm trying to migrate my set up from a power pc g4 imac running a 10.4.11 to a core i3 imac. All the system software and firmware on the g4 imac is upto date and the mac will enter target disc mode. The macs are connected using a brand new 6 pin to 9

  • How to close Purchase Order and mark to deletion flag.??

    Hi, We need to close all Open POs(For archiving, some old data) through a report. Considering .....                    1. PO-GR-IR and              2. STO-Outboundelivery-PGI-IBD-PGR Checked few threads, though useful but still more information requi

  • Order not available in ECC6.0 where as the same order is in SAP CRM?

    Hi SAP Experts, I have come up with one issue  as follows: I have changed the sales order in SAP CRM  and when i try to open the same document in ECC 6.0 in TCode:VA02,it is directing to logon screen with user ID and Password.When i input my logon de

  • LR4 About the big obnoxious undo redo signs

    Using ligntroom 4 from the cloud setup, is there any kind of setting I can use to defeat the big blotto sign that pops up just under center screen in "Develope" mode when you Ctrl-z (undo)/Ctrl-y(redo)? When you have the image in single image view an

  • Error itms - 4099 : "Invalid ISBN"

    I'm trying to upload my book with iTunes Producer, but get this error message.  It's a good isbn, why won't it validate?