cinap_lenrekadd hg and python4bb9e2215 years agoHistory
13 lines · 350 B · Python
RawDownload
import sqlite3 # Create a connection to the database file "mydb":con = sqlite3.connect("mydb") # Get a Cursor object that operates in the context of Connection con:cur = con.cursor() # Execute the SELECT statement:cur.execute("select * from people order by age") # Retrieve all rows as a sequence and print that sequence:print cur.fetchall()

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t