|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi,
Suppose have the following condition in my procedure : IF var_count = 0 then 'stop processing' --EXIT PROCEDURE ELSE 'continue processing' END IF; How do I stop futher processing if var_count= 0 . I think about raising an exception...but is there another way out..like a command 'exit' to stop further processing ? Thx... ![]() |
|
#2
|
|||
|
|||
|
why not simply
Code:
IF var_count <> 0 THEN -- process stuff END IF; But if you prefer the more complicated way, you can use the return statement Code:
IF var_count = 0 THEN RETURN; ELSE -- do processing END IF; |
|
#3
|
|||
|
|||
|
Thx..pal
The complicated way suit best my work requirements... ![]() |
![]() |
| Viewing: Dev Shed Forums > Databases > Oracle Development > How to exit a procedure |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|