公告
财富商城
积分规则
提问
发文
2019-01-12 14:32发布
Explosion°爆炸
This question already has an answer here:
How can I see the structure of table in SQLite as desc was in Oracle?
desc
You should be able to see the schema by running
.schema <table>
You can use the Firefox add-on called SQLite Manager to view the database's structure clearly.
I've implemented a SQLite table schema parser in PHP. You may check here: I implemented a sqlite table parser
https://github.com/maghead/sqlite-parser
The syntax follows the SQLite create table statement syntax: http://www.sqlite.org/lang_createtable.html
PRAGMA table_info(table_name);
This will work for both: command-line and when executed against a connected database.
You will get the structure by typing the command:
.schema <tableName>
.schema TableName
Where TableName is the name of the Table
最多设置5个标签!
You should be able to see the schema by running
You can use the Firefox add-on called SQLite Manager to view the database's structure clearly.
I've implemented a SQLite table schema parser in PHP. You may check here: I implemented a sqlite table parser
https://github.com/maghead/sqlite-parser
The syntax follows the SQLite create table statement syntax: http://www.sqlite.org/lang_createtable.html
This will work for both: command-line and when executed against a connected database.
You will get the structure by typing the command:
.schema TableName
Where TableName is the name of the Table