おはようございます自由人たち!今日はSQLiteについて勉強していきます。 SQLiteとは ひとことで言うとデータベースです。 特徴 ・オープンソースで、軽量、コンパクト、省メモリ。 ・Excelのように1行ずつデータ1個分が格納される。 ・サーバがいらない。
サーバーを再起動したら、データが全部消えてる。 そう、Pythonの変数はプログラムが終わると消えちゃうんですよね。 ここで登場するのが データベース。 Phase 8で学んだSQLiteを覚えていますか? 今日は、そのSQLiteを Flaskと連携 させます。 Webアプリから ...
This project shows the usage of SQLite with python. To create, modify and communicate with the SQLite database from within python I'll use the SQLite3 library that comes with python by default. The ...
1.How did you connect Python to a database? → I used Python’s built-in sqlite3 module and sqlite3.connect("sales_data.db") to connect. 2.What SQL query did you run? → SELECT product, SUM(quantity) AS ...
一部の結果でアクセス不可の可能性があるため、非表示になっています。
アクセス不可の結果を表示する