0% found this document useful (0 votes)
24 views

Devel1 Sqlite3 Quick Reference

The document provides a quick reference for common sqlite3 commands. It lists commands for viewing table names and structures, creating and altering tables, and exiting the sqlite shell. Examples include commands to see table names (.tables), view database structure (.schema), create a table, alter a table, and exit (.quit). Help is available using the .help command.

Uploaded by

Francis JS
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views

Devel1 Sqlite3 Quick Reference

The document provides a quick reference for common sqlite3 commands. It lists commands for viewing table names and structures, creating and altering tables, and exiting the sqlite shell. Examples include commands to see table names (.tables), view database structure (.schema), create a table, alter a table, and exit (.quit). Help is available using the .help command.

Uploaded by

Francis JS
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Devel1: sqlite3 Quick reference

Compartilhar 0

Pgina 1
mais Prximo blog Criar um blog Login

Devel1
Sunday, November 15, 2009

sqlite3 Quick reference


I always keep forgetting the syntax of sqlite command line queries Here are some which I use more frequently 1. To see the table names present in the current database sqlite> .tables 2. To see the databases and files sqlite> .databases 3. To know the structure of table sqlite> .schema 4. Create a table CREATE TABLE dummy (key varchar(250) UNIQUE, value BLOB, pid bigint ) 5. To alter a table sqlite> alter table dummy add key varchar(250); 6. To exit from sqlite shell, this I always keep forgetting. sqlite> .quit 7. For help sqlite> .help 8. How to find which process is locking the database fuser path_to_sqlite_file Posted by Devel1 at 11:46 PM

No comments:

Post a Comment
Enter your comment...

Comment as: Select profile... Publish Preview

Newer Post Subscribe to: Post Comments (Atom)

Home

Older Post

Followers
http://devel1.blogspot.com.br/2009/11/sqlite3-quick-reference.html 05/04/2013 12:39:18

Devel1: sqlite3 Quick reference

Pgina 2

Join this site


with Google Friend Connect

There are no members yet. Be the first!

Already a member? Sign in

Blog Archive
2010 (2) 2009 (10) December (1) November (2) Event Driven Programming sqlite3 Quick reference August (2) July (1) March (1) February (3)

About Me
Devel1 View my complete profile

http://devel1.blogspot.com.br/2009/11/sqlite3-quick-reference.html

05/04/2013 12:39:18

You might also like