Skip to content

Commit

Permalink
Semana 4 - Video 1.7
Browse files Browse the repository at this point in the history
Cerramos la conexión y la consulta
  • Loading branch information
IviiGonzalez committed May 9, 2023
1 parent 0d8c8a5 commit d7d9c6c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Python/Semana 4 (24-04 al 28-04)/Leccion04/BD/prueba_bd.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,7 @@
sentencia = 'SELECT * FROM persona'
cursor.execute(sentencia) # De esta manera ejecutamos la sentencia.
registros = cursor.fetchall() # Recuperamos todos los registros que serán una lista.
print(registros)

cursor.close()
conexion.close()

0 comments on commit d7d9c6c

Please sign in to comment.