d:\Documents\Саша\men.py
trunknown
python
a year ago
772 B
5
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('Семён','Олегович','molotok2023@gmail.com')") # m_customers = [ # ('Кирилл','Бродун','igrovkam@gamil.com'), # ('Глеб','Практика','grokam23323@gamil.com'), # ('Саша','Срамук','wpoklfmwpo23@gamil.com'), # ] # 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...