我正在编写
一个
shell脚本来scp
一个项目,其中一部分涉及在我的
数据库中传输一些重要的表.
我将以下文件存储在sqlTableTransfer文件中:
.o MyTable1.sql;
.dump MyTable1;
.o MyTable2.sql;
.dump MyTable2;
.o MyTable3.sql;
.dump MyTable3;
并抓住机会
$sqlite3 sqlTableTransfer
但这只是打开了sqlite3 shell.从命令行运行这样的脚本的正确方法是什么?