Files

44 lines
1.1 KiB
Markdown
Raw Permalink Normal View History

---
id: 5e9a093a74c4063ca6f7c163
title: 从数据库中读取数据
challengeType: 11
videoId: MtgXS1MofRw
bilibiliIds:
aid: 890546354
bvid: BV1JP4y1h7gk
cid: 409020851
dashedName: reading-data-from-databases
---
# --description--
*在视频中我们使用的编辑器工具是在 notebook.ai 这个平台,你也可以选择用其他的平台,比如说 Google Colab 也是一个不错的选择。*
以下有更多的资料
- [在 GitHub 平台的 Notebooks](https://github.com/krishnatray/RDP-Reading-Data-with-Python-and-Pandas)
- [如何使用 Google Colab 来打开 GitHub 上的 Notebooks](https://colab.research.google.com/github/googlecolab/colabtools/blob/master/notebooks/colab-github-demo.ipynb)
# --question--
## --text--
`Cursor` 实例中都有什么方法,这些方法能用来做什么?
## --answers--
`Cursor` 实例中有方法 `.run()` ,它允许你运行 SQL 查询语句。
---
`Cursor` 实例中有方法 `.select()` ,它允许你选择记录。
---
`Cursor` 实例有方法 `.execute()` 它能够接收在数据库中运行的 SQL 参数。
## --video-solution--
3