查询 NoSQL 数据库
在本练习中,您将练习从列式、文档型和键值型数据库中查询数据。这三类都是常见的 NoSQL 数据库,您将在整门课程中持续使用它们!
本练习是课程的一部分
NoSQL 入门
交互式实操练习
通过完成这段示例代码来试试这个练习。
# Update the query to pull the team, year, event, and medal
# fields from the olympic_medals table
query = """
SELECT
____,
____,
____,
____
FROM olympic_medals;
"""
results = conn.cursor().execute(query).fetch_pandas_all()
print(results)