Android sqlite3工具的使用

sqlite3 <数据库名称> 进入数据库操作模式 eg: sqlite3 contacts.db

.tables 查看所有的表 eg: .table

.schema 查看查看库中所有表的DDL语句 eg: .schema

.help 查看帮助 eg: .help

.headers on/off 显示表头 默认off eg: headers on

.mode list|column|insert|line|tabs|tcl|csv 改变输出格式 eg: .mode column

.nullValue NULL空值数据显示问题 eg: .nullValue NULL

.dump <表名> 生成形成表的SQL脚本 eq: .dump person

.dump 生成整个数据库的SQL脚本 eq: .dump

.exit 退出sqlite操作模式 eq: .exit

posted on 2015-10-22 14:19  Z2  阅读(291)  评论(0编辑  收藏  举报

导航