|
In this article, we will discuss how to delete of a specific row from the SQLite table using Python. In order to delete a particular row from a table in SQL, we use the DELETE query, The DELETE Statement in SQL is used to delete existing records from a table. We can delete a single record or multiple records depending on the condition we specify in the WHERE clause. Syntax:
We are going to create a table and then perform deletion operations in it. Python3
Output: Ship table created successfully
Example 1: Python program to insert data and delete data where 2 is ship id. Python3
Output: Example 2: In this example delete data where the ship address is hyderabad on the same table. Python3
Output: |
Reffered: https://www.geeksforgeeks.org
Python |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 8 |