版权声明:转载请注明出处 https://blog.csdn.net/understand125/article/details/78696850
转载请注明出处!
1. 编写sql脚本upgradeDB.sql,其中就是普通sql语句
update tablename set colname=value where ID=value;
2. 编写shell脚本
#!/bin/sh
sqlite3 -init upgradeDB.sql crane.db << EOF
.quit
EOF