sqliteHow do I install SQLite on Windows?
-
Download the latest version of SQLite for Windows, and extract the zip file to the desired folder.
-
Install the pre-release version of the SQLite ODBC driver for Windows.
-
Open the Windows command prompt and navigate to the folder where you extracted the SQLite zip file.
-
Enter the following command to create a new database:
sqlite3 test.db. -
Enter
.tablesto view the tables in the database. -
Enter
.quitto exit the SQLite command prompt. -
To access the database from a programming language, use the
sqlite3module. For example, in Python:
import sqlite3
conn = sqlite3.connect('test.db')
c = conn.cursor()
The output of this code will be a connection object.
More of Sqlite
- How do I use UUIDs in SQLite?
- How do I use SQLite with Visual Studio?
- How can I use an upsert statement to update data in a SQLite database?
- How do I install and use SQLite on Ubuntu?
- How can I use SQLite with Xamarin Forms?
- How do I use the SQLite sequence feature?
- How can I use SQLite with Xamarin Forms and C#?
- How do I use SQLite VACUUM to reclaim disk space?
- How do I use SQLite REPLACE to update existing records in a database?
- How do I use query parameters with SQLite?
See more codes...