连接数据库
# sqlite3 /data/data/com.pad/databases/pad.db
SQLite version 3.6.33
sqlite>

退出接口
sqlite>.quit 或者 sqlite>.exit

显示可用的数据库
sqlite>.databases

显示可用的数据库表:
sqlite>.tables

列表显示表索引
sqlite>.indices table_pets

列表显示表的数据库模式
列表定表的模式,
sqlite>.schema table_pets

列表显示数据库的模式
sqlite>.schema


将输入发送到文件
sqlite>.output /data/local/tmp/dump.sql

使用sql命令
sqlite> select * from table_pettypes WHERE _id < 11;

使用其它的sqlite3命令
sqlite> .help




















相关文章:

  • 2021-09-19
  • 2022-01-26
  • 2022-12-23
  • 2021-10-21
  • 2021-05-20
  • 2022-12-23
  • 2021-09-29
  • 2021-09-18
猜你喜欢
  • 2021-12-09
  • 2021-06-12
  • 2021-06-16
  • 2021-09-22
  • 2021-12-15
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案