My OTHER works of exception handler, but NO_DATA_FOUND and ZERO_DIVIDE does not work.

My employees table doesn't have a record with employe_id of 250.I identified a user defined NO_DATA_FOUND but without any result. The handler to E exceptions. A. is executed instead.

DECLARE

v_employee_id employees.employee_id%TYPE;

v_salary employees.salary%TYPE;

v_job_id employees.job_id%TYPE;

Sum_Salary copy_employees.salary%TYPE;

number of v_num;

NO_DATA_FOUND EXCEPTION;

pragma exception_init (no_data_found,-00251);

BEGIN

SELECT the salary, job_id INTO v_salary, v_job_id

Employees

WHERE employee_id = 250;

v_num:=(100/0);

EXCEPTION

WHEN no_data_found THEN

DBMS_OUTPUT. Put_line (' you crazy!) ');

WHEN standard.zero_divide THEN

DBMS_OUTPUT. Put_line (' how you can divide by zero?) ');

WHILE others THEN

DBMS_OUTPUT. Put_line (' Hey, support technique contact!');

END;

I've run it: -.

SQL > DECLARE

v_employee_id 2 employees.employee_id%TYPE;

3 v_salary employees.salary%TYPE;

4 v_job_id employees.job_id%TYPE;

5 sum_salary copy_employees.salary%TYPE;

Number 6 v_num;

7 no_data_found EXCEPTION;

pragma 8 exception_init (no_data_found,-00251);

BEGIN 9

10. SELECT salary, job_id INTO v_salary, v_job_id

11 used FROM

12. WHERE the employee_id = 250;

13 v_num:=(100/0);

14 EXCEPTION

15. WHEN no_data_found THEN

16 DBMS_OUTPUT. Put_line (' you crazy!) ');

17. WHEN standard.zero_divide THEN

18 DBMS_OUTPUT. Put_line (' how you can divide by zero?) ');

19 THEN than others THEN

20 DBMS_OUTPUT. Put_line (' Hey, support technique contact!');

21 END;

22.

Hey, contact technical support.

PL/SQL procedure successfully completed.

What do you see when you try this... you don't need pragma statement.

DECLARE
v_employee_id employees.employee_id%TYPE;
v_salary employees.salary%TYPE;
v_job_id employees.job_id%TYPE;
Sum_Salary copy_employees.salary%TYPE;
v_num NUMBER;
BEGIN
SOME treatments, job_id
IN v_salary, v_job_id
Employees
WHERE employee_id = 250;

v_num: = (100 / 0);
EXCEPTION
WHEN NO_DATA_FOUND
THEN
DBMS_OUTPUT. Put_line (' you crazy!) ');
WHEN ZERO_DIVIDE
THEN
DBMS_OUTPUT. Put_line (' how you can divide by zero?) ');
WHILE OTHERS
THEN
DBMS_OUTPUT. Put_line ("Hey, support technique contact!");
END;
/

Tags: Database

Similar Questions

  • To work with the text to the assignment by the cursor of the large fragment of page it is necessary to change all the time down, 'against the judgment", but the page automatically does not start to rise upward, as happens in other browsers. I ask you for

    After the transition to Windows 7, there was a problem with Firefox. To work with the text to the award by the cursor of the large fragment of page it is necessary to change all the time down, 'against the judgment", but the page automatically does not ascend to the top as it was earlier, and like that occurs in other browsers. It is necessary to press the other key "down" which is him very troublesome. Resettlement on an earlier version (8.0) earlier irreproachably working, gave nothing. I ask you to help

    You must activate the module bar (Firefox > Options or view > toolbars;) CTRL + /) or find bar to make Firefox scroll the page while selecting the text (Ctrl + F).

  • loads of YouTube but then when I click on a video it doesent play. It worked fine the other day and it does not work in the past and suddenly. Help, please!

    loads of YouTube but then when I click on a video it doesent play. It worked fine the other day and it does not work in the past and suddenly. Help, please!

    Clear the cache and cookies from sites that cause problems.

    "Clear the Cache":

    • Tools > Options > advanced > network > storage (Cache) offline: 'clear now '.

    'Delete Cookies' sites causing problems:

    • Tools > Options > privacy > Cookies: "show the Cookies".

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > appearance/themes).

  • In the United States, I can use selector locale quick to get U.S. locale of Russia but in Russia, it does not work to go the other way or any other premises than elsewhere. After selecting a new language and restarting firefox, it remains on the Russian

    In the United States, I can use selector locale quick to get us to the locale of Russia (ru - RU), but in Russia, it does not work to go the other way or any other premises than elsewhere. After you have selected the local new and restart firefox, it remains on the Russian locale. Y at - it a fix for this problem?

    This has happened

    Each time Firefox opened

    == Looks like it started with a newer version of firefox, but this may have been coicidental

    You have other language packs languages installed?
    Tools > Modules > languages

    There is no module language en-US, to achieve that you must install the version of Firefox en-US and install other languages in the version.
    http://releases.Mozilla.org/pub/mozilla.org/Firefox/releases/3.6.6/Win32/XPI/

    See also http://kb.mozillazine.org/Language_packs

  • My laptop can open internet explore properly, the cursor may work when you tap the address space to type a Web site, but the site it does not point to the search space to find anything except the right button

    My laptop can open internet explore properly, the cursor may work when you tap the address space to type a Web site, but the site it does not point to the search space to find anything except the right button. What is the problem? Harry

    When you try to search it's inside Windows or Internet explore?
    When is this last work fine?
    You did changes to the computer?
    Has it worked before, then you can try to run the system restore and check if that helps

    ;)

  • just has got rid of the virus and responsible for all the disks but given the wifi does not work

    WiFi doesn't work do not

    just has got rid of the virus and responsible for all the disks but given the wifi does not work

    Hello

    Check with the system manufacturer or the actual WiFi device manufacturer and ask in their forums (if any)
    for problems known.

    Actually, try updating your driver:

    Control Panel - network - write down of the brand and the model of the Wifi - double click top - tab of the driver - write
    version - click the driver update (cannot do something that MS is far behind the pilots of certification). Then
    Right click on the Wifi device and UNINSTALL - Reboot - it will refresh the driver stack.

    Look at the sites of the manufacturer for drivers - and the manufacturer of the device manually.
    http://pcsupport.about.com/od/driverssupport/HT/driverdlmfgr.htm

    How to install a device driver in Vista Device Manager
    http://www.Vistax64.com/tutorials/193584-Device-Manager-install-driver.html

    Download - SAVE - go where you put it - right click – RUN AS ADMIN.

    You can download several at once however restart after the installation of each of them.

    After watching the system manufacturer, you can check the manufacturer of the device an even newer version. (The
    manufacturer of system become your backup policies).

    Repeat for network (NIC) card and is a good time to get the other updated drivers as Vista like
    updated drivers.

    I would also turn off auto update for the drivers. If the updates Windows suggests a just HIDE as they
    are almost always old, and you can search drivers manually as needed.

    How to disable automatic driver Installation in Windows Vista - drivers
    http://www.AddictiveTips.com/Windows-Tips/how-to-disable-automatic-driver-installation-in-Windows-Vista/
    http://TechNet.Microsoft.com/en-us/library/cc730606 (WS.10) .aspx

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle=""><- mark="" twain="" said="" it="">

  • Cannot download plug in for windows media player. Have used the site to download and it says it worked, but the plug-in does not appear on my list of plug-ins.

    I tried to hear an appeal of a Web conference. Received a message, necessary plug windows media. Check my plug ins, no windows media. Reading about firefox support tutorial. Clicked on download. Had a window that requires repair or change. Tried to fix it and then change. Need better guidance on how to finish download. Download the message passed, but after firefox closing and re-opening, no still no plug-in for windows media in the list of plug-ins. Go to site and could not hear Conference.
    Reading support forum. Message while using about: config. Tried, typed in on: config in Start menu, but do not see anything that looked like I could change for real like message said.
    solved by opening internet explore and go to the website and listen to the conference call on windows media player. There was a message saying: If you want to enable media player click here. Not so heard Conference.
    Tried using chrome. You have to listen to the Conference yesterday. Today, he had the same message you need to plug in when I tried to follow the instructions in connect, it was just as confusing and useless like firefox. Most is that I tried to make any statement in the suggestions forum for firefox and can not get the windown media connect to appear in my list of plug-ins and can not hear calls for conference on firefox.
    Chrome said that they worked on connect available to the chrome store.
    I agree with the comments that I was able to go to web sites and to hear the calls before firefox did an update that removed my windows media plug. The fix simple download, two from windows, does not, apparently because firefox cannot find the fix. This isn't for lack of user, and it seems that windows attempted to provide a fix, and firefox does not recognize.
    Bottom line, it is easier to use another browser, that trying to get windows connect multimedia player installed on firefox. What is a browser, if you can not hear an appeal on the Web site the browser will take you to? Please make it easy install windows media branch on firefox. Thank you..

    If you get the screen to change/repair, it means that the Setup program has detected that you have already installed the plugin.

    Do you not see the file here:

    C:\Program Files (x86)\Mozilla Firefox\Plugins
    

    Its file name is: np - mswmp.dll

    If the file is missing, I suggest to delete and then reinstall the plugin.

    Edit: By removing and then reinstalling I mean using the delete button under the modification and repair buttons in the Setup program, and then run Setup to reinstall.

    For your questions, you can either (1) open the your profile page (drop-down menu of your username along the edge very top of the page) or (2) open the "sort and filter" section the questions above and click on the link 'My Contributions' (https://support.mozilla.org/en-US/questions?filter=my-contributions).

  • On another PC I want to save my favorites, but my browser Firefox does not work how can I make the backup, before I reinstall Firefox

    On another PC I want to save my favorites, but my browser Firefox does not work how can I make the backup, before I reinstall Firefox.
    Firefox cannot renew its tabs and now won't run and let me do a backup

    This may be considered to be solve my problem.
    I decided to uninstall the rogue program Firefox download and reinstall the same version (No. 8). I used Windows XP Add Remove programs who asked if I wanted to save the settings of Firefox until I uninstalled Firefox. I said yes and operated with the uninstall. I couldn't find a Firefox 8 so I went for the 12 version and installed on the laptop. This version 12 now works with all the passwords one favorite of the uninstalled 8.
    Thank you for all your help and advice.

  • Wolf 3D and SoD does not work on Windows7 32 bit but it does in Windows XP?

    I have already downloaded versions freeware and shareware of best games in existence! (Wolf3D and Spear of Destiny, nested DOS, original version) In Windows XP, it worked well, all I get under Windows 7 Home Premium 32 bit is a black window feared, blinking icon and the opportunity to do nothing but close the window!

    I tried to run the application in compatibility mode with previous versions of Windows (including Windows 95!) But Windows 7 is so automatic that I can't change any settings.

    Not much of a computer geek, but Microsoft seem to think that something before 2007 is not worth worrying about

    Can anyone help?

    Hello littleoldme.

    I would suggest running DOS games in a BACK emulator like DOSBox http://www.dosbox.com/, Windows did not have a good DOS since Windows 98 mode. Paul Smith - MVP for Windows desktop experience... I crawled off NNTP - for now. Detachment Aldershot, United Kingdom. On the internet at windowsresource.net and dasmirnov.net. Please post back to let us know what works and what does not. :-)

  • just installed windows 8.1 but the webcam and Bluetooth does not work

    I just installed windows 8.1 on hp laptop 430 but now my webcam doesn't work and onboard microphone does not work and bluetooth does not work also. Please give me a soloution.

    Thankz in advance

    Hello Shehanf93

    Thanks for posting on the HP Forums!

    I understand that you have a problem with your laptop. However, since it is a commercial laptop, you should post your question on the map cell of the HP Enterprise Forums for a better answer.

    Have a wonderful day!

    Mario

  • After a computer crash, I reinstalled Windows XP, but Windows Media Player does not work.

    After a computer crash, I reinstalled Windows XP, but Windows Media Player does not work. I don't have reinstall all disks. Will install tools software system Dell, Sonic RecordNow, Sound Blaster Live, or CyberLink Power DVD play cd possible? Thank you.

    original title: Media Player

    Hello

    1. What is the exact error message or error code when you try to open Windows Media Player?

    2. what version of Windows Media Player?

    3. What is the issue you are experiencing during playback of the CD?

    I suggest you follow the Microsoft article reference and check if it helps.

    Troubleshooting playback in the Windows Media Player for Windows XP: http://support.microsoft.com/kb/306317

    Resources for the resolution of problems in Windows Media Player: http://support.microsoft.com/kb/843509

    I recommend you to install the software provided by Dell disk and check if it makes a difference.

    Note : using third-party software, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.

  • Recently, I ran an anti-virus and learned that my netBT.sys file was corrupted. The anti-virus software installs this file but now my internet does not work.

    netBT.sys replacement files viruses

    Recently, I ran an anti-virus and learned that my netBT.sys file was corrupted.  The anti-virus software installs this file but now my internet does not work.  I guess I have to replace this file, but don't know how.  I see that I need to use my windows XP CD but my CD drive is broken.  How can I go about replacing this file?

    Thanks in advance

    Hi DonMendigo,

    Follow the suggestions below for a possible solution:

    Method 1: Try the SFC (System File Checker) scan on the computer.

    To run the System File Checker tool, follow these steps:

    a. click Startand type cmd in the box start the search.

    b. right click on cmd in the list programs, and then click run as administrator.

    c. If you are prompted for an administrator password or a confirmation, type your password or click on continue

    d. at the command prompts, the following line and press ENTER:

    sfc/scannow

    See also:

    Description of Windows XP and Windows Server 2003 System File Checker (Sfc.exe)

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

     

    File system (CFS) Checker

    http://www.Microsoft.com/resources/documentation/Windows/XP/all/proddocs/en-us/system_file_checker.mspx?mfr=true

     

    Method 2: If you are still unable to connect to the internet, then follow the article in the Microsoft Knowledge Base and check.

    Programs Internet in Windows XP cannot connect to the Internet via a connection to wide band

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

     

    I hope this helps.

  • IV had windows 7 put, but my motion camera does not work

    I had windows 7 put on my sony vaio, but my motion camera does not work, anyone got any ideas

    You will need to download drivers from the Sony site for your laptop model and operating system (they cannot support Windows 7).

    I hope this helps.

  • My model is an integrated and I was afraid to take it apart and * it upward. I tried all the f keys, but only F2 works. It does not display my HD, and it does not start. What should do?

    Hey guys, so I have an ASUS X502C and last night, it has become very slow, that I tried to close all pages open and it started making a very loud noise. I couldn't even turn off, so I closed the lid and went to sleep. When I woke up it was still on the same screen until I tried to close it and turn it off. He went to a black screen with the back light on. My model is an integrated and I was afraid to take it apart and * it upward. I tried all the f keys, but only F2 works. It does not display my HD, and it does not start. What should do?

    Hey guys, so I have an ASUS X502C and last night, it has become very slow, I tried closing all open pages, and he started to make a very loud noise. I couldn't even turn off, so I closed the lid and went to sleep. When I woke up it was still on the same screen until I tried to close it and turn it off. He went to a black screen with the back light on. My model is an integrated and I was afraid to take it apart and * it upward. I tried all the f keys, but only F2 works. It does not display my HD, and it does not start. What should do?

    Hello

    Looks like a hardware failure.

    Try to reinstall the operating system:

    It comes to the use of the Asus restore procedure.

    http://www.ASUS.com/support/FAQ/1006133/

    See you soon.

  • Reinstall photoshop element 9 but the serial No. does not work

    I'm now reinstall Photoshop Elements 9 on the same computer, in window8, but the series No. does not work, what should I do?

    Invalid License http://helpx.adobe.com/creative-suite/kb/error-serial-number-valid-product.html

    -http://helpx.adobe.com/creative-suite/kb/invalid-serial-number-cs4.html

    - and http://forums.adobe.com/thread/1038761

Maybe you are looking for