How to send a SQL query to database in PHP without waiting for result

前端 未结 3 705
小鲜肉
小鲜肉 2021-01-27 08:20

Working with DB2 and PHP, my ADDs and DROPs take a long time to finish (30 seconds per ADD and DROP). I am curious if there is a way to send my ADDs and DROPs to the database w

3条回答
  •  悲&欢浪女
    2021-01-27 08:36

    A simple solution is cron to schedule your tasks

    http://articles.sitepoint.com/article/introducing-cron

    Schedule all the sql scripts you want to run at a predetermined time.

提交回复
热议问题