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.
I've just tested this in a Rev61 system, and the RETURN statement works just fine for this.
CREATE PROCEDURE test_return ( in im_flag nvarchar(1))
LANGUAGE SQLSCRIPT
SQL SECURITY INVOKER
--DEFAULT SCHEMA <default_schema_name>
READS SQL DATA AS
BEGIN
/*****************************
Write your procedure logic
*****************************/
select 'This' from dummy;
select 'That' from dummy;
if :im_flag = 'Y' THEN
RETURN;
end if;
select 'The Other' from dummy;
END;
Cheers,
Rich Heilman
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| 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.