저는 기능적으로는 동일하지만 ?"c.fetchall()"과 "c.execute (SELECT ....")를 할당하는 것의 차이점은 무엇입니까?
c.execute("""SELECT * FROM players WHERE team = ?;"""), (team_name,))
results = c.fetchall()
player_list = []
for player in results:
player_list.append(player)
대
results = c.execute("""SELECT * FROM players WHERE team = ?;"""), (team_name,))
player_list = []
for player in results:
player_list.append(player)