Merge pull request #472 from asamarin/master

Add: sqlite3 - describe table schema
This commit is contained in:
Chris Allen Lane 2019-10-16 06:13:40 -04:00 committed by GitHub
commit 307c4e6ad6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -10,6 +10,9 @@ sqlite3 example.db "INSERT INTO 'Os' VALUES(1,'Linux',1991);"
# list tables # list tables
sqlite3 example.db ".tables" sqlite3 example.db ".tables"
# describe table
sqlite3 example.db ".schema 'Os'"
# view records in table # view records in table
sqlite3 example.db "SELECT * FROM 'Os';" sqlite3 example.db "SELECT * FROM 'Os';"