Python Sqlite3 Tutorial | Sqlite3 Tutorial | How To Create Database In SQLite #sqlite3 #sqlite #new

preview_player
Показать описание
What is Sqlite3?

Python SQLite3 module is used to integrate the SQLite database with Python. It is a standardized Python DBI API 2.0 and provides a straightforward and simple-to-use interface for interacting with SQLite databases. There is no need to install this module separately as it comes along with Python after the 2.5x version.

How to create table in SQLite3 using python:

The Cursor object contains all the methods to execute quires and fetch data etc. The cursor method of the connection class returns a cursor object.
Therefore, to create a table in SQLite database using python −

1) Establish connection with a database using the connect() method.

2) Create a cursor object by invoking the cursor() method on the above created connection object.

3) Now execute the CREATE TABLE statement using the execute() method of the Cursor class.

Python sqlite3 tutorial,python sqlite tutorial, sqlite tutorial, how to create database in sqlite, how to create table in sqlite, sqlite db

Python Sqlite3 Tutorial | Sqlite3 Tutorial | How To Create Database In SQLite #sqlite3 #sqlite #new #pythonsqlite3 #pythonprogramming
Рекомендации по теме