d:\Documents\Саша\men.py
trunknown
python
2 years ago
772 B
13
Indexable
import sqlite3
conn = sqlite3.connect("customer.db")
c = conn.cursor()
# c.execute("""CREATE TABLE customers(
# first_name text,
# last_name text,
# email text
# )""")
# c.execute("INSERT INTO customers VALUES('Семён','Олегович','[email protected]')")
# m_customers = [
# ('Кирилл','Бродун','[email protected]'),
# ('Глеб','Практика','[email protected]'),
# ('Саша','Срамук','[email protected]'),
# ]
# c.executemany("INSERT INTO customers VALUES(?,?,?)",m_customers)
c.execute("SELECT * FROM customers")
print(c.fetchall())
print("САМАГОН ВЗЛОМАН XD")
#NULL
#TEXT
#INTEGER
#REAL
#BLOB
conn.commit()
conn.close()Editor is loading...