Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

python sqlite data delete

# sqlite3 delete data to database 
conn = sqlite3.connect('TestDB.db') 
deleteInput=int(input("enter delete number for id 
"))
conn.execute(f'DELETE FROM CLIENTS WHERE generated_id= {deleteInput}')
conn.commit()
conn.close()
 
PREVIOUS NEXT
Tagged: #python #sqlite #data #delete
ADD COMMENT
Topic
Name
9+7 =