sqlite3

Create New database

In DOS,

sqlite3 test.db

Now we go to sqlite prompt

Help

sqlite> .help

List Tables

sqlite> .tables

Describe Table

sqlite> .schema TableName

For example,

sqlite> .schema SoundOption
CREATE TABLE SoundOption (isSoundOn int);

SELECT

sqlite> SELECT * FROM SoundOption;

UPDATE

sqlite> UPDATE SoundOption SET isSoundOn=1;

EXIT

sqlite> .exit
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s