Commit 5e4d2906 authored by Evenson Jeunesse's avatar Evenson Jeunesse

Update prog.py

parent 574516ab
......@@ -95,7 +95,15 @@ def updateEspece(classe, nom, new_classe, new_nom):
print("An error occurs, please try again...")
return False
def updateClient(nom, prenom, dateNaissance, adresse, telephone)
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)
print("SQL : "+sql)
if Execute(sql):
print("Espece updated successfully")
return True
print("An error occurs, please try again...")
return False
def updatePersonnel(nom, prenom, dateNaissance, adresse, telephone, specialite, role)
def updateAnimal(nom, dernierPoids, dernierTaille, dateNaissance, espece)
def updateProprietaire(client_id, animal_id)
......
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