在脚本里运行
#!/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
在脚本里运行
#!/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

被折叠的 条评论
为什么被折叠?