Skip to content

Commit

Permalink
database wip
Browse files Browse the repository at this point in the history
  • Loading branch information
FatihMalakci committed Jul 1, 2019
1 parent a87d604 commit 8ef828e
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion database.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
import sqlite3

conn = sqlite3.connect('users.db')
conn = sqlite3.connect('users.db')
c = conn.cursor()


#Creating our table.
c.execute('''CREATE TABLE users
(name,sirname,age,phone number)''')

# Inserting an example user.
c.execute("INSERT INTO users VALUES('Fatih','Malakçı','24','5419768923')")

#Saving
conn.commit()

#Closing
conn.close()

0 comments on commit 8ef828e

Please sign in to comment.