05 - SQlite Flashcards

1
Q

What is SQLite?

A

Public-domain, lightweight RDBMS, follows nearly entire SQL-92. Designed by D. Richard Hipp, 2000.

Main features:

  • Serverless
  • Zero configuration
  • Cross-platform
  • Small Runtime Footprint
  • Highly Reliable
  • Self-contained

Many applications use SQLite3: WhatsApp, Skype, Mozilla Firefox, Chrome.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Name the commands for:

  1. Display tables
  2. Display schema of a table
  3. To change the output
  4. To quit
A
  1. .tables
  2. .schema
  • .output
  • .quit
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the five data types in SQLite?

A
  • INTEGER
  • TEXT (CHAR, VARCHAR, TEXT, …)
  • REAL (REAL, DOUBLE, FLOAT, …)
  • NUMERIC (BOOLEAN, DATETIME, NUMERIC, …)
  • NONE
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How can you auto increment a field in SQL?

A

CREATE TABLE person (

PID INTEGER PRIMARY KEY AUTOINCREMENT

Name TEXT

);

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the SQLite_Master table?

A

Contain information on all tables, indexes and keys.

Get information from sqlite_master table:

SELECT * FROM sqlite_master;

Show the structure of the sqlite_master table:

.schema sqlite_master;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are the five steps to analysis unknown databases?

A
  1. Understand / Use the Application
  2. Find the SQLite files
  3. Gather information on each database file
  4. Perform common application tasks
  5. Develop SQL queries to extract information
How well did you know this?
1
Not at all
2
3
4
5
Perfectly