How would I execute two independent SQL statements in the same stored
procedure? I have a business process that requires a number of long-
running procedures to be executed. The procedures themselves are not
related and can be run simultaneously. The pseudo-code would look
like this
call proc_1;
if variable_1 is 'GO' then
call long_proc_2 &
call long_proc_3 &
fi
if variable_2 is 'GO' then
call proc_4
fi
The & means start the procedure and move on to the next statement
without waiting for the return.
Is this possible with SQL stored procedures? What about C or Java?
Thanks!
procedure? I have a business process that requires a number of long-
running procedures to be executed. The procedures themselves are not
related and can be run simultaneously. The pseudo-code would look
like this
call proc_1;
if variable_1 is 'GO' then
call long_proc_2 &
call long_proc_3 &
fi
if variable_2 is 'GO' then
call proc_4
fi
The & means start the procedure and move on to the next statement
without waiting for the return.
Is this possible with SQL stored procedures? What about C or Java?
Thanks!
Comment