on 2013 Feb 18 10:01 AM
Hello Experts,
Is there an 'Exit' like command in SQL script (for script based calculation view)?
Thanks and Regards,
Arpita
Request clarification before answering.
Hi Arpita,
I don't think there is any EXIT as such, but if you are using LOOPS (WHILE or IF) with a condition, then you can always make the condition false for the loop to complete.
For ex: if you have while loop with
WHILE v_val < 50 DO
END WHILE;
In the loop you can always set the v_val to 50 when you want to exit the loop.
Is this what you are looking for or is there something else.
Regards,
Ravi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Just to add there are BREAK & CONTINUE statements that you could use to exit from loops - page 43 in http://help.sap.com/hana/hana_dev_sqlscript_en.pdf
Thanks,
Anooj
| User | Count |
|---|---|
| 12 | |
| 9 | |
| 6 | |
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.