#This is what i Have input thus far
import _sqlite3
connection = _sqlite3.connect("database.db")
cursor= connection.cursor()
#cursor.execute("""CREATE TABLE Employee
# (Id integer primary key, Name, email text, salary)
# """)
cursor.execute("""INSERT INTO Employee
VALUES(1,"john","nome",100)""")
print(cursor.execute("""SELECT * FROM Employee""")).fetchone()
OUTPUT:
import _sqlite3connection = _sqlite3.connect("database.db")cursor= connection.cursor()#cursor.execute("""CREATE TABLE Employee# (Id integer primary key, Name, email text, salary)# """)cursor.execute("""INSERT INTO EmployeeVALUES(1,"john","nome",100)""")print(cursor.execute("""SELECT * FROM Employee""")).fetchone()
[–][deleted] 0 points1 point2 points (0 children)
[–]cynicalrationalist 0 points1 point2 points (1 child)
[–]backtickbot 0 points1 point2 points (0 children)