MySQL stored procedure return result before end of procedure -
is possible return result of select statement in stored procedure, before procedure done running? example:
create procedure 'testproc'() begin //do stuff select 'column' table'; //do more stuff end
is possible return result of select statement , have procedure keep doing it's thing afterwords?
thanks
what kind of stuff wanting keep doing after select? maybe insert select query temp table, continue doing other stuff, select @ end? temp table values still if returned mid routine still continue doing "other stuff."
edit below comment: me should handled application doing following -break current stored procedure 2 parts
call 1st insert stored procedure code takes first part of string , inserts database. return id application
the application takes id received back, , calls second stored procedure(time consuming one) , passes 2 parameters. id , rest of string.
the database continues rest of insert while application continues on.
Comments
Post a Comment