DELETE and UPDATE Command in Python PDBC

Program 1 # Program for PDBC Delete Data by id import MySQLdb try: con=MySQLdb.connect(host=’localhost’,user=’root’,password=’root’,database=’DataFlair’) print(“Data Base connected”) empid=int(input(“Enter employee id for delete: “)) sql=”delete from employee where eid={}” sql=sql.format(empid) cur=con.cursor() n=0 n=cur.execute(sql) con.commit() if(n==0):...