SQLite

Overview

SQLite is a small, fast, embeddable database. What makes it popular is the combination of the database engine and interface into a single library as well as the ability to store all the data in a single file. Its functionality lies between MySQL and PostgreSQL, however it is faster than both databases.

In SQLite, author Chris Newman provides a thorough, practical guide to using, administering and programming this up-and-coming database. If you want to learn about SQLite or about...

See more details below
Available through our Marketplace sellers.
Other sellers (Paperback)
  • All (6) from $13.97   
  • New (1) from $99.45   
  • Used (5) from $13.97   
Close
Sort by
Page 1 of 1
Showing All
Note: Marketplace items are not eligible for any BN.com coupons and promotions
$99.45
Seller since Tue Jan 01 01:01:01 EST 2008

Feedback rating:

(194)

Condition:

New — never opened or used in original packaging.

Like New — packaging may have been opened. A "Like New" item is suitable to give as a gift.

Very Good — may have minor signs of wear on packaging but item works perfectly and has no damage.

Good — item is in good condition but packaging may have signs of shelf wear/aging or torn packaging. All specific defects should be noted in the Comments section associated with each item.

Acceptable — item is in working order but may show signs of wear such as scratches or torn packaging. All specific defects should be noted in the Comments section associated with each item.

Used — An item that has been opened and may show signs of wear. All specific defects should be noted in the Comments section associated with each item.

Refurbished — A used item that has been renewed or updated and verified to be in proper working condition. Not necessarily completed by the original manufacturer.

New
067232685X New. Looks like an interesting title!

Ships from: Naperville, IL

Usually ships in 1-2 business days

  • Standard, 48 States
  • Standard (AK, HI)
Page 1 of 1
Showing All
Close
Sort by
Sending request ...

Overview

SQLite is a small, fast, embeddable database. What makes it popular is the combination of the database engine and interface into a single library as well as the ability to store all the data in a single file. Its functionality lies between MySQL and PostgreSQL, however it is faster than both databases.

In SQLite, author Chris Newman provides a thorough, practical guide to using, administering and programming this up-and-coming database. If you want to learn about SQLite or about its use in conjunction with PHP this is the book for you.

Read More Show Less

Product Details

  • ISBN-13: 9780672326851
  • Publisher: Sams
  • Publication date: 9/15/2004
  • Series: Developer's Library Series
  • Pages: 313
  • Product dimensions: 7.00 (w) x 8.94 (h) x 0.69 (d)

Meet the Author

Chris Newman is a consultant programmer specializing in the development of custom web-based database applications to a loyal international client base.

A graduate of Keele University, Chris lives in Stoke-on-Trent, England, where he runs Lightwood Consultancy Ltd, the company he founded in 1999 to further his interest in Internet technology. Lightwood operates web hosting services under the DataSnake brand and is proud to be one of the first hosting companies to offer and support SQLite as a standard feature on all accounts.

More information on Lightwood Consultancy Ltd can be found at http://www.lightwood.net, and Chris can be contacted at chris@lightwood.net.

Read More Show Less

Table of Contents

I General SQLite use
1 Getting started 7
2 Working with data 23
3 SQLite syntax and use 55
4 Query optimization 85
II Using SQLite programming interfaces
5 The PHP interface 101
6 The C/C++ interface 125
7 The Perl interface 147
8 The Tcl interface 173
9 The Python interface 187
III SQLite administration
10 General database administration 211
IV Appendixes
A Downloading and installing SQLite 235
B Command reference for the sqlite tool 239
C SQL syntax reference 243
D PHP interface reference 255
E C interface reference 261
F Perl interface reference 271
G Tcl interface reference 277
H Python interface reference 281
I The future of SQLite 285
Read More Show Less

Preface

Introduction

Welcome to SQLite

SQLite is one of the fastest-growing database engines around, but that's growth in terms of popularity, not anything to do with its size. In fact one of SQLite's greatest strengths is that it is extremely lightweight indeed yet still manages to retain a large number of features.

Why Use SQLite?

There are many reasons for choosing SQLite, including

  • Performance—SQLite performs database operations efficiently and is faster than other free databases such as MySQL and PostgreSQL.
  • Size—SQLite has a small memory footprint and only a single library is required to access databases, making it ideal for embedded database applications.
  • Portability—SQLite runs on many platforms and its databases can be ported easily with no client/server setup or ongoing administration required.
  • Stability—SQLite is ACID-compliant, meeting all four criteria—Atomicity, Consistency, Isolation, and Durability.
  • SQL support—SQLite implements a large subset of the ANSI-92 SQL standard, including views, subqueries, and triggers.
  • Interfaces—SQLite has language APIs for C/C++, PHP, Perl, Python, Tcl, and many more beyond those covered in this book.
  • Cost—SQLite is in the public domain and therefore is free to use for any purpose without cost and can be freely redistributed.

Who This Book Is For

This book is aimed at intermediate- to advanced-level programmers looking to include database functionality within their applications. You should have at least a basic working knowledge of one of the languages covered by this book—C/C++, PHP, Perl, Python, or Tcl. The underlying library is written in C/C++; however, it is not necessary to understand that language in order to use the full capabilities of SQLite in your applications.

If you are a new programmer you should still be able to pick up SQLite fairly quickly, but this book does not cover programming basics in any of the languages for which there is a SQLite interface. The benefits of SQLite are only realized through using a programming API as it does not include the tools required to operate as a standalone database system.

It is not a prerequisite to have used a relational database in the past. If SQLite will be the first SQL-based database you have encountered, the book gives a thorough SQL tutorial covering the syntax as understood by SQLite. SQL veterans will still benefit from reviewing the sections that cover features included and omitted by SQLite.

How the Book Is Organized

This book is organized into three parts.

Part I—General SQLite Use

  • Chapter 1: Getting Started—Gives some background on SQLite and discusses its strengths and weaknesses. Covers a few basic SQL commands to get things going and looks at the interactive interfaces to SQLite.
  • Chapter 2: Working with Data—A concise SQLite tutorial introduces working with the SQLite back end. Discusses programming and database design issues related to SQLite.
  • Chapter 3: SQLite Syntax and Use—Examines SQL syntax as supported by SQLite and suggests workarounds for the unsupported features.
  • Chapter 4: Query Optimization—Discusses performance considerations related to SQL queries and gives some techniques that can be used to speed up your database application.

Part II—Using SQLite Programming Interfaces

  • Chapter 5: The PHP Interface—How to use the SQLite library within PHP scripts to create dynamic, database-driven web pages.
  • Chapter 6: The C/C++ Interface—How to write C/C++ programs using the SQLite library.
  • Chapter 7: The Perl Interface—How to write Perl scripts using the Database Interface module and SQLite Database Driver.
  • Chapter 8: The Tcl Interface—How to write Tcl scripts using the supplied SQLite extension.
  • Chapter 9: The Python Interface—How to write Python programs using the PySQLite extension.

Part III—SQLite Administration

  • Chapter 10: General Database Administration—Discusses basic administration of SQLite and examines SQLite's internal architecture and the Virtual Database Engine (VDBE).

Versions of Software Covered

At the time of writing, the most recent stable version of SQLite is 2.8.15; however, SQLite 3 is already available as a beta and includes some changes and enhancements over the version 2 series. This book was written with the established, stable, and well-supported version 2 series in mind.

For the other software discussed in this book, the current versions are as follows:

  • PHP 5.0.1
  • Perl 5.8.5
  • Perl::DBI 1.4.3
  • DBD::SQLite2 0.32
  • Tcl 8.4.7
  • Python 2.3.4

Additional Resources

The following are the primary web pages for each of the packages used in this book:

  • SQLite—http://www.sqlite.org/
  • PHP—http://www.php.net/
  • Perl DBI—http://dbi.perl.org/
  • Tcl—http://www.tcl.tk/
  • Python—http://www.python.org/

For support with any of these technologies the relevant mailing list is a good place to start. Instructions on joining them can be found in the following locations:

  • SQLite—http://www.sqlite.org/support.html
  • PHP—http://www.php.net/mailing-lists.php
  • Perl DBI—http://dbi.perl.org/support/
  • Tcl—http://wiki.tcl.tk/1301
  • Python—http://www.python.org/community/lists.html

© Copyright Pearson Education. All rights reserved.

Read More Show Less

Introduction

Introduction

Welcome to SQLite

SQLite is one of the fastest-growing database engines around, but that's growth in terms of popularity, not anything to do with its size. In fact one of SQLite's greatest strengths is that it is extremely lightweight indeed yet still manages to retain a large number of features.

Why Use SQLite?

There are many reasons for choosing SQLite, including

  • Performance—SQLite performs database operations efficiently and is faster than other free databases such as MySQL and PostgreSQL.

  • Size—SQLite has a small memory footprint and only a single library is required to access databases, making it ideal for embedded database applications.

  • Portability—SQLite runs on many platforms and its databases can be ported easily with no client/server setup or ongoing administration required.

  • Stability—SQLite is ACID-compliant, meeting all four criteria—Atomicity, Consistency, Isolation, and Durability.

  • SQL support—SQLite implements a large subset of the ANSI-92 SQL standard, including views, subqueries, and triggers.

  • Interfaces—SQLite has language APIs for C/C++, PHP, Perl, Python, Tcl, and many more beyond those covered in this book.

  • Cost—SQLite is in the public domain and therefore is free to use for any purpose without cost and can be freely redistributed.

Who This Book Is For

This book is aimed at intermediate- to advanced-level programmers looking to include databasefunctionality within their applications. You should have at least a basic working knowledge of one of the languages covered by this book—C/C++, PHP, Perl, Python, or Tcl. The underlying library is written in C/C++; however, it is not necessary to understand that language in order to use the full capabilities of SQLite in your applications.

If you are a new programmer you should still be able to pick up SQLite fairly quickly, but this book does not cover programming basics in any of the languages for which there is a SQLite interface. The benefits of SQLite are only realized through using a programming API as it does not include the tools required to operate as a standalone database system.

It is not a prerequisite to have used a relational database in the past. If SQLite will be the first SQL-based database you have encountered, the book gives a thorough SQL tutorial covering the syntax as understood by SQLite. SQL veterans will still benefit from reviewing the sections that cover features included and omitted by SQLite.

How the Book Is Organized

This book is organized into three parts.

Part I—General SQLite Use

  • Chapter 1: Getting Started—Gives some background on SQLite and discusses its strengths and weaknesses. Covers a few basic SQL commands to get things going and looks at the interactive interfaces to SQLite.

  • Chapter 2: Working with Data—A concise SQLite tutorial introduces working with the SQLite back end. Discusses programming and database design issues related to SQLite.

  • Chapter 3: SQLite Syntax and Use—Examines SQL syntax as supported by SQLite and suggests workarounds for the unsupported features.

  • Chapter 4: Query Optimization—Discusses performance considerations related to SQL queries and gives some techniques that can be used to speed up your database application.

Part II—Using SQLite Programming Interfaces

  • Chapter 5: The PHP Interface—How to use the SQLite library within PHP scripts to create dynamic, database-driven web pages.

  • Chapter 6: The C/C++ Interface—How to write C/C++ programs using the SQLite library.

  • Chapter 7: The Perl Interface—How to write Perl scripts using the Database Interface module and SQLite Database Driver.

  • Chapter 8: The Tcl Interface—How to write Tcl scripts using the supplied SQLite extension.

  • Chapter 9: The Python Interface—How to write Python programs using the PySQLite extension.

Part III—SQLite Administration

  • Chapter 10: General Database Administration—Discusses basic administration of SQLite and examines SQLite's internal architecture and the Virtual Database Engine (VDBE).

Versions of Software Covered

At the time of writing, the most recent stable version of SQLite is 2.8.15; however, SQLite 3 is already available as a beta and includes some changes and enhancements over the version 2 series. This book was written with the established, stable, and well-supported version 2 series in mind.

For the other software discussed in this book, the current versions are as follows:

  • PHP 5.0.1

  • Perl 5.8.5

  • Perl::DBI 1.4.3

  • DBD::SQLite2 0.32

  • Tcl 8.4.7

  • Python 2.3.4


© Copyright Pearson Education. All rights reserved.

Read More Show Less

Customer Reviews

Be the first to write a review
( 0 )
Rating Distribution

5 Star

(0)

4 Star

(0)

3 Star

(0)

2 Star

(0)

1 Star

(0)
Sort by: Showing all of 2 Customer Reviews
  • Anonymous

    Posted Fri Dec 24 00:00:00 EST 2004

    faster than MySQL

    My impression was that PHP and MySQL were de facto two sides of the same coin. Many websites using PHP deploy MySQL on the backend. Indeed, there have been several books written about implementing this combination. But Newman offers a simple alternative. A stripped down SQL database that he claims will suffice for many websites. Indeed, he points out that SQLite has proved persuasive enough that PHP5 ships with it. Going over its syntax, the book shows much of SQLite to be generic SQL. Given that whatever database you choose, you should probably stick to standard SQL as much as possible, then SQLite suffers from no particular deficiency here. What is distinctive is that its data resides in just one file. Greatly eases administration. Plus, other databases are often implemented as client-server, so as to service queries coming in from the Net. It is indeed a disadvantage that SQLite cannot do this. But in return, by eliminating a network layer, it can be twice as fast as MySQL. Wow. Cautiously, I'd say it may be attractive to some websites.

    0 out of 1 people found this review helpful.

    Was this review helpful? Yes  No   Report this review
  • Anonymous

    Posted Sun Nov 29 00:00:00 EST 2009

    No text was provided for this review.

Sort by: Showing all of 2 Customer Reviews

If you find inappropriate content, please report it to Barnes & Noble
Why is this product inappropriate?
Comments (optional)