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 the SQLite SUBSTRING function?
- How do I use the SQLite sequence feature?
- How to configure SQLite with XAMPP on Windows?
- How do I use SQLite with Visual Studio?
- How do I use the SQLite ZIP VFS to compress a database?
- How do I show the databases in SQLite?
- How do I use a SQLite viewer to view my database?
- How do I exit SQLite?
- How do I set up an ODBC driver to connect to an SQLite database?
- How do I use UUIDs in SQLite?
See more codes...