7 lines
227 B
Python
7 lines
227 B
Python
import sqlite3
|
|
db=sqlite3.connect(":memory:")
|
|
db.execute("create table notes(value text)")
|
|
value="A student's note"
|
|
db.execute("insert into notes values (?)",(value,))
|
|
print(db.execute("select value from notes").fetchone()[0])
|