I have a database table called Students
and I want to delete a record using SQL. Here is my code:
uid = int(input("Please enter students ID: "))
c.execute("DELETE FROM Students WHERE ID = (uid) ")
I want to input the ID
variable (uid
) into the c.execute
Thanks in advance.