Top "Sqlite" questions

SQLite is a software library that implements a self-contained, serverless, zero-configuration, transactional SQL database engine.

Escape single quote character for use in an SQLite query

I wrote the database schema (only one table so far), and the INSERT statements for that table in one file. …

sqlite escaping
Python SQLite: database is locked

I'm trying this code: import sqlite connection = sqlite.connect('cache.db') cur = connection.cursor() cur.execute('''create table item (id …

python sqlite pysqlite
SQLite Query in Android to count rows

I'm trying to create a simple Login form, where I compare the login id and password entered at the login …

android sqlite count
Difference between 2 dates in SQLite

How do I get the difference in days between 2 dates in SQLite? I have already tried something like this: SELECT …

sqlite
unexpected T_VARIABLE, expecting T_FUNCTION

I am expecting this to be a basic syntax error I overlooked, but I can't figure it out. In a …

php sqlite syntax-error
Accessing an SQLite Database in Swift

I'm looking for a way to access an SQLite database in my app with Swift code. I know that I …

sqlite swift
How do I add a foreign key to an existing SQLite table?

I have the following table: CREATE TABLE child( id INTEGER PRIMARY KEY, parent_id INTEGER, description TEXT); How do I …

sql sqlite foreign-keys ddl
Where does Android emulator store SQLite database?

I'm working on an Android application that stores data in a SQLite database. My question is, where does this database …

android sqlite
Drop all tables command

What is the command to drop all tables in SQLite? Similarly I'd like to drop all indexes.

sql sqlite rdbms database
SQLite "INSERT OR REPLACE INTO" vs. "UPDATE ... WHERE"

I've never seen the syntax INSERT OR REPLACE INTO names (id, name) VALUES (1, "John") used in SQL before, and I …

sqlite upsert