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

  1. call 1st insert stored procedure code takes first part of string , inserts database. return id application

  2. the application takes id received back, , calls second stored procedure(time consuming one) , passes 2 parameters. id , rest of string.

  3. the database continues rest of insert while application continues on.


Comments

Popular posts from this blog

Issues changing the value of an element in an array in matlab -

php - MySQLi binding parameters in a prepared statement doesn't work unless inserted after "WHERE" -

vb.net - Alternative to the T-SQL AS keyword -