In the php server script, how does one write a php script to regularly copy data from table a to Table B on a daily basis? Help ......
Reply to discussion (solution)
Your server? Is it linux? Is it windows?
For linux? Comparison ???, Can you use linux? Crontab ??? OK? Operation, windows? Ratio? Ma ?. You may want to use any ???
Is it more difficult to set scheduled tasks than to modify the crontab file?
You must have the permission on the file and pay attention to the format.
Scheduled tasks only need to be hooked up.
The server is linux. Is there any reference code? Thank you!
*/10 */usr/localhost/webservice/php/bin/php/www/test. php>/var/log/sendApi. log
Crontab to add a scheduled execution program
Thanks, the id of Data Table a is auto-incrementing, and the id of Data Table B cannot be auto-incrementing. when copying a table, for example, if there are multiple IDs in table a, how can we insert data into data Table B in a loop? the database we use is mysql!