You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
305 B
12 lines
305 B
import sqlite3
|
|
|
|
conn = sqlite3.connect("iot_data.sqlite")
|
|
cursor = conn.cursor()
|
|
|
|
print("--- Všechna měření ---")
|
|
cursor.execute("SELECT * FROM mereni")
|
|
for radek in cursor.fetchall():
|
|
print(radek)
|
|
|
|
conn.close()
|
|
print("\nHotovo! Soubor iot_data.sqlite přečtený (možná vytvořený prázdný)")
|