File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 66cur .execute ('SELECT * FROM People' )
77count = 0
88print ('People:' )
9- for row in cur :
9+ for row in cur :
1010 if count < 5 : print (row )
1111 count = count + 1
1212print (count , 'rows.' )
1313
1414cur .execute ('SELECT * FROM Follows' )
1515count = 0
1616print ('Follows:' )
17- for row in cur :
17+ for row in cur :
1818 if count < 5 : print (row )
1919 count = count + 1
2020print (count , 'rows.' )
2121
22- cur .execute ('''SELECT * FROM Follows JOIN People
23- ON Follows.to_id = People.id WHERE Follows.from_id = 2''' )
22+ cur .execute ('''SELECT * FROM Follows JOIN People
23+ ON Follows.to_id = People.id
24+ WHERE Follows.from_id = 2''' )
2425count = 0
2526print ('Connections for id=2:' )
26- for row in cur :
27+ for row in cur :
2728 if count < 5 : print (row )
2829 count = count + 1
2930print (count , 'rows.' )
You can’t perform that action at this time.
0 commit comments