Asynchronous Stored Procedure Calls

后端 未结 3 452
情深已故
情深已故 2021-01-13 10:24

Is it possible to call a stored procedure from another stored procedure asynchronously?

Edit: Specifically I\'m working with a DB2 database. ­­­­­­­

3条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-13 10:41

    It sounds like you need to put some scheduled jobs in place with Cron (or windows equiv). You could use the initial stored proc call to set some kind of flag in the DB, which is then checked periodically by a cron job. If you need to have a specific delay before the 2nd job executes, you should be able to do that by having the task scheduled by the cron job.

提交回复
热议问题