NoSQL เบื้องต้น
Jake Roach
Data Engineer


ฐานข้อมูลแบบ column-oriented:


SELECT
title,
price
FROM books
WHERE price < 50.00;
$$
SELECT
title,
price
FROM books
WHERE price < 50.00;
คิวรีนี้ทำงานโดย:
price และค้นหาระเบียนที่มี price < 50.00title
ในบทต่อไป จะกล่าวถึง:
JOIN ที่มีประสิทธิภาพimport snowflake.connector
conn = snowflake.connector.connect(
user="<user>",
password="<password>",
account="<account_identifier>",
database="<database_name>",
schema="<schema_name>",
warehouse="<warehouse_name>"
)
conn จะถูกสร้างให้อัตโนมัติก่อนเริ่มแบบฝึกหัด# Build a query in a string (or multi-line string)
query = """
SELECT
title,
price
FROM books
WHERE price < 50.00;
"""
# Execute the query, print the results
results = conn.cursor().execute(query).fetch_pandas_all()
print(results)
NoSQL เบื้องต้น