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
.tables
to view the tables in the database. -
Enter
.quit
to exit the SQLite command prompt. -
To access the database from a programming language, use the
sqlite3
module. 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 set up an autoincrement primary key in SQLite?
- How do I use SQLite with Zephyr?
- How can SQLite and ZFS be used together for software development?
- How do I use the SQLite ZIP VFS to compress a database?
- How do I call sqlitepcl.raw.setprovider() when using SQLite?
- How do I use UUIDs in SQLite?
- How do I use the SQLite zfill function?
- How do I generate XML output from a SQLite database?
- How can I use SQLite in a C# project?
- How can I use PHP to query a SQLite database?
See more codes...