44 lines
1012 B
Markdown
44 lines
1012 B
Markdown
---
|
|
id: 5e9a093a74c4063ca6f7c163
|
|
title: Leggere i dati dal database
|
|
challengeType: 11
|
|
videoId: MtgXS1MofRw
|
|
bilibiliIds:
|
|
aid: 890546354
|
|
bvid: BV1JP4y1h7gk
|
|
cid: 409020851
|
|
dashedName: reading-data-from-databases
|
|
---
|
|
|
|
# --description--
|
|
|
|
*Invece di usare notebooks.ai come mostrato nel video, puoi usare Google Colab.*
|
|
|
|
Altre risorse:
|
|
|
|
- [Notebook su GitHub](https://github.com/krishnatray/RDP-Reading-Data-with-Python-and-Pandas)
|
|
- [Come aprire Notebooks da GitHub usando Google Colab.](https://colab.research.google.com/github/googlecolab/colabtools/blob/master/notebooks/colab-github-demo.ipynb)
|
|
|
|
# --question--
|
|
|
|
## --text--
|
|
|
|
Che metodo ha un'istanza di `Cursor` e che cosa permette?
|
|
|
|
## --answers--
|
|
|
|
L'istanza `Cursor` ha un metodo `.run()` che consente di eseguire query SQL.
|
|
|
|
---
|
|
|
|
L'istanza `Cursor` ha un metodo `.select()` che consente di selezionare un documento.
|
|
|
|
---
|
|
|
|
L'istanza `Cursor` ha un metodo `.execute()` che riceverà i parametri SQL da eseguire sul database.
|
|
|
|
## --video-solution--
|
|
|
|
3
|
|
|