Skip to content
Snippets Groups Projects
Commit ec28fd6d authored by Bouchaira Neirouz's avatar Bouchaira Neirouz
Browse files
parent e6c31868
No related branches found
No related tags found
No related merge requests found
......@@ -27,11 +27,9 @@ with tab1:
with tab2:
st.title("Création de compte employé")
# Connect to the database
with sqlite3.connect(r'donnees\company.db') as conn: # Use raw string
print("Page de création de compte employé")
conn= sqlite3.connect(r'C:\Users\neiro\Documents\+\GitHub\sgbd-usine\donnees\company.db')
cursor = conn.cursor()
# Get the maximum employee number from the database
cursor.execute("SELECT MAX(NUMERO_EMPLOYE) FROM EMPLOYE")
max_numero_employe = cursor.fetchone()[0]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment