命令行查看sqlite3表结构的命令
sqlite3 xxxxx.db
SQLite version 3.7.15.1 2012-12-19 20:39:10
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite>
SQLite version 3.7.15.1 2012-12-19 20:39:10
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite>
方法1
sqlite>. select * from sqlite_master where type="table";方法2
sqlite>.schema [表名]
默认输出所有的表, 建表SQL语句。
推荐方法2
本文介绍如何通过命令行方式查看SQLite3数据库中表的结构,包括使用`.select`命令筛选表和`.schema`命令直接查看指定表的建表SQL语句。
874

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



