Tabellenschema für SQLite3-Tabelle auf der Kommandozeile anzeigen
English
Deutsch
Siehe auch How to get schema of SQLite3 table in Python
Du kannst den Befehl .schema verwenden, um die SQL-CREATE-Anweisung für eine bestimmte Tabelle in einer SQLite3-Datenbankdatei mit dem sqlite3-Kommandozeilen-Tool anzuzeigen:
show_schema.sh
sqlite3 [database file] ".schema (table name)"zum Beispiel:
show_schema_example.sh
sqlite3 /usr/share/command-not-found/commands.db ".schema commands"Check out similar posts by category:
SQLite
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow