📅  最后修改于: 2022-03-11 15:05:15.487000             🧑  作者: Mango
# connect database and create cursor here
import sqlite3
conn = sqlite3.connect('File.Name')
cur = conn.cursor()
# statement to be executed
cur.execute("""SELECT COL_NAME FROM TABLE_NAME LIMIT 5;""").fetchall()