更新时间:2023-11-30 12:07:46
怎么样?
bar.php:
<?php `mysql < foo.sql`;
请参阅执行运算符文档 和 在批处理模式下使用 mysql文档.
这是推荐的 [...] 做法,为什么 [...] ?
is this a recommended [...] practice, why [...] ?
始终建议为工作选择合适的工具.mysql 命令行界面非常强大、快速且经过充分测试.它可以满足您的需求.
It's always recommended to choose the right tool for the job. the mysql commandline interface is pretty powerful, fast and well-tested. It does what you're looking for.