Commit c2d88906 authored by Evenson Jeunesse's avatar Evenson Jeunesse

Update prog.py

parent bd5d9944
......@@ -97,7 +97,7 @@ def updateEspece(classe, nom, new_classe, new_nom):
def updateClient(id, nom, prenom, dateNaissance, adresse, telephone):
sql = "UPDATE Clients SET nom='{}', prenom='{}', date_naissance=TO_DATE('{}', 'YYYY-MM-DD'), adresse='{}', telephone={} WHERE id={}".format( nom, prenom, dateNaissance, adresse, telephone, id)
if Execute(sql):
print("Espece updated successfully")
print("Client updated successfully")
return True
print("An error occurs, please try again...")
return False
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment