From 77d0f6d9a0855544f1da722ca857055c889cfcf6 Mon Sep 17 00:00:00 2001 From: Alex Samarin Date: Mon, 14 Oct 2019 09:54:38 +0100 Subject: [PATCH] Add: sqlite3 - describe table schema --- cheat/cheatsheets/sqlite3 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cheat/cheatsheets/sqlite3 b/cheat/cheatsheets/sqlite3 index a3215b9..dc306f3 100644 --- a/cheat/cheatsheets/sqlite3 +++ b/cheat/cheatsheets/sqlite3 @@ -10,6 +10,9 @@ sqlite3 example.db "INSERT INTO 'Os' VALUES(1,'Linux',1991);" # list tables sqlite3 example.db ".tables" +# describe table +sqlite3 example.db ".schema 'Os'" + # view records in table sqlite3 example.db "SELECT * FROM 'Os';"