開始使用免費開始

查詢 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)
編輯並執行程式碼