sqlite3
在脚本里运行
#!/bin/bash
sqlite3 ~/xx.db << EOF
.quit
EOF
创建表 删除表
create table if not exists TableName (col1 typ1, ..., colN typN);
drop table if exists TableName
导出表
.output xx.sql
.dump table_name
.output stdout
原创
2021-03-11 19:35:58 ·
117 阅读 ·
0 评论