()
| 72 | |
| 73 | |
| 74 | def Delete(): |
| 75 | val = int(input("Enter product ID whose records are to be deleted:")) |
| 76 | query = "delete from inventory where PID={}".format(val) |
| 77 | cursor.execute(query) |
| 78 | con.commit() |
| 79 | if cursor.rowcount > 0: |
| 80 | print("Record Successfully Deleted") |
| 81 | else: |
| 82 | print("Product not found") |
| 83 | |
| 84 | |
| 85 | def check(): |