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

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -