轉載請註明出處!
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
轉載請註明出處!
1. 編寫sql腳本upgradeDB.sql,其中就是普通sql語句
update tablename set colname=value where ID=value;
#!/bin/sh
sqlite3 -init upgradeDB.sql crane.db << EOF
.quit
EOF