Find if update changed something or not

Hi folks,
If you have a procedure that takes 10 parameters and updates a table. How would you check if something was really updated? The only way I know how to do this is to query the table and then compare input parameters with the query to see if anything changed. If someone updates data and changes it compared to previous state I need to return 1 or 0 if update did not change anything.
Is there any other way of finding this information?
Best regards,
Igor

Not good
declare
  l_rowcount number := 0;
begin
  for i in 1 .. 10
  loop
    update employees_temp
       set something = 1
     where id = 1;
    l_rowcount := l_rowcount + sql%rowcount;
    dbms_output.put_line('No: ' || to_char(sql%rowcount));
  end loop;
  dbms_output.put_line('Total No: ' || l_rowcount);
end;If you execute update it doesnt mean you actually changed the data. I need to know if update changed the data or it got updated to same thing as it were before.
Best regards,
Igor

Similar Messages

  • After software update wi-fi network not found

    Turned on apple tv (newest one) this morning and there was an update so I had it run, after restart, Apple TV cannot find wifi network any longer although it found it fine to update, my phone and laptop in the same room 20 ft from the router are having no trouble connecting. I have 2 wi-fi networks (linksys router and airport) and it won't find either.
    How do I trouble shoot this problem? Nothing has changed in my setup. I do not broadcast SSID, watched movies on netflix though it fine yesterday. Did the update change something?
    Any suggestion would be appreciated.
    Betsy

    Betsy, i just updated my second gen apple tv and the same thing happen to me. After some trial and error attempts to locate the network i ended up sending it to sleep then unplug it, wait a sec, and plug it back and voila!! Everythings back again. Hope this helps, good luck.

  • Downloads used to open after download. NOw they just end up in the download folder and I have to go to the folder to find it and open it. I did not change seettings, maybe an update changed it? I cannot find a way to change this in settings.

    Downloads used to open after download. NOw they just end up in the download folder and I have to go to the folder to find it and open it. I did not change seettings, maybe an update changed it? I cannot find a way to change this in settings.
    == This happened ==
    Every time Firefox opened
    == A week or two ago. Not sure if result of most recent update.

    Downloads used to open after download. NOw they just end up in the download folder and I have to go to the folder to find it and open it. I did not change seettings, maybe an update changed it? I cannot find a way to change this in settings.
    == This happened ==
    Every time Firefox opened
    == A week or two ago. Not sure if result of most recent update.

  • I have been finding since updating to ios7 that music I have not purchased has been showing up in my library, is this normal or has something happened with my iTunes account

    Since updating to ios7, I have found that music shows up on my phone that I do not own, either through cd or through iTunes Store. I was wondering if this was normal after the update or something else. It coincides with the glitch with cloud music, but is much more troublesome. Not only is it music I do not want, my fear is potentially getting charged or someone else being charged for music we did not buy

    Yes I understand this. I have done this, even deleted songs which I did not want on there. My concern is songs have showed up which I did not purchase. (And currently my music library is designated as "show all" off). I would like to know how this is happening and is there a way to prevent it from happening

  • TS3992 Changes to my notes, contacts, etc., on my iPhone are not updating in the Cloud after back up

    I upgraded to iPhone 5 but when I back up the Cloud (both wifi and plug-in), changes to my notes, contacts, etc., that I've made on my iPhone are not updating in the Cloud

    Hi Gorm019,
    If you are having issues with Photo Stream, you may find the following articles helpful:
    iCloud: My Photo Stream FAQ
    http://support.apple.com/kb/ht4486
    iCloud: My Photo Stream troubleshooting
    http://support.apple.com/kb/ts3989
    Regards,
    - Brenden

  • I need to install the find my iPhone app on my ipad, it's won't install. Any reasons. Do I need to change something in my settings? I am up to date with my ios7. Please help!

    I need to install the find my iPhone app on my ipad, it will not install. Any reasons. Do I need to change something in my settings? I am up to date with my ios7. Please help!

    Try closing the App Store app via the iPad's taskbar and then do a soft-reset and see if you can install it after the iPad has restarted. To close the App Store : double-click the home button to open the taskbar, and then swipe or drag the App Store app's screen from there up and off the top of the screen to close it, and click the home button to close the taskbar.
    Soft-reset : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.

  • After years without a problem, I am suddenly unable to remote share my work computer at home.  I haven't done any updates recently and did not make any changes.  Anyone have any thoughts?

    After years without a problem, I am suddenly unable to remote share my work computer at home.  I haven't done any updates recently and did not make any changes to the setup.  It was working Monday night and stopped working Tuesday morning.  I am at a loss for what could have happened.   Anyone have any thoughts?

    it sounds like your work changed something on their network.  Try asking your IT people if they recently blocked any ports related to remote management or changed their firewall settings to block incoming connections.

  • Why is it that every time I run a Flash update I find my update options have changed?

    Why is it that every time I run a Flash update I find my update options have changed?
    It is getting irritating to keep having to click that I do not want to automatically run updates.  I am tempted to just turn off updates completely.
    Would it not be too difficult to keep the settings previously used?
    I always like to be advised of updates so I can then select to run them.

    Moved to Installing Flash Player

  • The "always allow" button is grayed out in settings regarding cookies, and I can not find where to change the setting.  (Restrictions are not on.)

    The "always allow" button is grayed out in settings regarding cookies, and I can not find where to change the setting.  (Restrictions are not on.)  Do you know where I go to change the setting to allow me to "always allow" cookies?

    Hi lisaarnett111,
    If you are having issues turning on Always Allow for cookies in Safari on your iPad, you may want to check to make sure that you don't have Private Browsing enabled, as noted in the following article:
    Turn Private Browsing on or off on your iPhone, iPad, or iPod touch - Apple Support
    Regards,
    - Brenden

  • My apple ID and password, recognized through out the Cloud, is not being recognized in the itunes store. I am signed into itunes.When I want to change something in my account, the sign in prompt comes up and doesn't recognize my PW

    My apple ID and password, recognized through out the Cloud, is not being recognized in the itunes store. I am signed into itunes.When I want to change something in my account, the sign in prompt comes up and doesn't recognize my PW

    Solved the problem. I had to allow cookies for safari and it run - as here: Re: itunes keeps asking for my apple id password. it's NOT entered incorrectly.

  • When Updating to IOS4 Do Not Say Yes to Udpate Changes to Settings

    I updated my iPhone 3g to IOS4 on release date. OK You can stop laughing at me know, I got screwed over but I was lucky.
    I couldn't get the OS to install using the update so I did the work around and downloaded the OS into iTunes and did a backup and then a restore. I had read a couple of threads that said this would work a lot faster than doing the update. I had waited nearly three hours for the update to finish so I figured it was the combination of my creaky old PC, iTunes and one of the apps on my phone so I tried the restore instead of update trick. It actually worked and only took about 30 minutes start to finish.
    BUT when it was done I got a dialog box telling me that I had changed my settings and did I want to apply this change to my phone <YES> or <NO>? Without thinking about it I clicked yes and my phone did another sync. I lost my address book, email and text messages all in one fell swoop. Can you spell panic and nausea? I thought you could.
    I was all over the web looking for ways to restore my stuff. I tried another sync because the last one I did before installing the new OS should have still been there...No Luck.
    I tried everything I could think of and nothing worked. I wasn't too worried about my email, because of course it was still out on the web (Gmail Rocks!!)
    Then it occurred to me, I had been using Gmail and GSync. I set up a new G-Sync account on my phone and set it to running. It took about 24 hours total, but all of my email, contacts and text messages restored themselves to my phone wirelessly.
    So I strongly recommend that you do not apply changes to your phone when you do the IOS4 update. At least not the first time around. I also do not recommend using the restore in place of update workaround. Just let the update run (and run and run and run and, well you get it)until it finishes. You should get a clean install and a total restore of your music, contacts, apps, email, etc. I have no idea why an update on an 8 Gb iPhone needs to take hours, but apparently it just does.
    So to sum up:
    If updating to IOS4 use the update in iTunes not restore
    At the end of the update DO NOT apply changes to settings
    DO use gmail and G-Sync or another email that backs up your address book to the web.

    Fixed it......
    The problem was my Apps library in iTunes was not populated with the apps on my phone after the update of iTunes and iOS4. Therefore, that is why I "lost" them visually. Now, had I gone and hit "Apply" I would have been screwed, since nothing was in my iTunes App library.....Sneaky.....
    In iTunes, File>"Transfer Purchases from iPhone"
    This populates the iTunes App library with the apps on your device. It will take a few minutes, but all of the apps will now show up when you go back and try to sync the iPhone.
    Screenshot of Success!
    http://i55.photobucket.com/albums/g134/leonardrock/Screenshot3.png
    Nice, I'm not stupid.
    Thanks for the chime-ins everybody!

  • I just upgraded my iMac to Lion, and a few seconds ago, I upgraded the iWork package and now I'm having some problems with the new version of Pages (4.1) When I try to change something in a document, a message says "the program is not responding"

    I just upgraded my iMac to Lion, and a few seconds ago, I upgraded the iWork package and now I'm having some problems with the new version of Pages (4.1) When I try to change something in a document, a message says "the program is not responding", so I have to force it to close. By the way, the SAVE botton stays the same even I change erverything in my document. Please, a have a work to finish, **** me. What I can do abou it?

    I just upgraded my iMac to Lion, and a few seconds ago, I upgraded the iWork package and now I'm having some problems with the new version of Pages (4.1) When I try to change something in a document, a message says "the program is not responding", so I have to force it to close. By the way, the SAVE botton stays the same even I change erverything in my document. Please, a have a work to finish, **** me. What I can do abou it?

  • I have an iphone 4, i connect it to my laptop using the usb and then when connecting to itunes it says my phone is not up to date with itunes yet i cannot find an update 11.1 for my phones itunes? someone please help me.. kind regards

    i have an iphone 4, i connect it to my laptop using the usb and then when connecting to itunes it says my phone is not up to date with itunes yet i cannot find an update 11.1 for my phones itunes? someone please help me.. kind regards

    Itunes 11.1 is for your computer, not your iphone
    It is required in order to sync with ios 7.

  • I had changed my Apple ID on my PC and realized iCloud. On my iphone  iCloud account is on the old ID. Could not find where to change it.   In Settings-iTunes

    I had changed my Apple ID on my PC and realized iCloud. On my iphone  iCloud account is on the old ID. Could not find where to change it.  In Settings-iTunes & App Stores – I had replaced the old ID with the new one. On my iPad 2 – iCloud account is on old ID, I cannot change it, 
    do i have to delete iCloud accounts and re=build them ?

    Yes, you got it. there is no way to change - just delete. Usually there is no loss, but photostream is reset, so make sure to back up your pictures before you do.

  • Changing ID3 Tags - not updating?

    Hi
    I am updating Artist, Title information within iTunes - but for some reason the changes are not being reflected in the file ID3 tags?
    some of my files are updating and others are not?
    Any ideas?
    Thanks in advance?

    How are you examining the ID3 tags? Maybe whatever program you're using to look at them is caching the information, and not checking the tags when you look at the file a second time?

Maybe you are looking for