更新时间:2023-01-31 23:12:00
仅使用PHP会很麻烦,您必须从mysql表中获取所有记录,在sqlite3中创建适当的表并插入记录.
Using PHP only would be rather troublesome, you'd have to get all the records from your mysql table, create the appropriate tables in sqlite3 and insert the records.
据我所知,您只是想自动使用它,所以我看不到使用Shell程序的危害.您可以使用exec
函数很容易地做到这一点: http://nl3. php.net/manual/en/function.exec.php
As far as I can tell you just want to to it automatically, so I would'nt see the harm in using shell programs. You could quite easily do this using the exec
function: http://nl3.php.net/manual/en/function.exec.php