freeCodeCamp/curriculum/challenges/chinese/08-data-analysis-with-python/data-analysis-with-python-c.../reading-data-from-databases.md

1.1 KiB

id challengeType videoId
5e9a093a74c4063ca6f7c163 11 MtgXS1MofRw

Description

More resources: - Reading CSVs Notebook - Reading SQL - Reading HTML - Reading Excel files

Tests

question:
  text: |
    What method does a `Cursor` instance have and what does it allow?    
  answers:
    - |
      The `Cursor` instance has a `.run()` method which allows you to run SQL queries.      
    - |
      The `Cursor` instance has a `.select()` method which allows you to select records.      
    - |
      The `Cursor` instance has an `.execute()` method which will receive SQL parameters to run against the database.      
  solution: 3