Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
enseignement:dbdm:tp1 [2016/02/05 06:58] ecoquery |
enseignement:dbdm:tp1 [2018/02/01 09:42] (Version actuelle) rthion [SQLite practice] |
||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | ====== | + | ====== SQLite practice ====== |
- | [[https:// | + | [[https:// |
This lab will give you some practice on SQL querying. | This lab will give you some practice on SQL querying. | ||
Ligne 20: | Ligne 20: | ||
As SQLite is not a full featured DBMS server, starting the SQLite shell on a database file is sufficient to get started. | As SQLite is not a full featured DBMS server, starting the SQLite shell on a database file is sufficient to get started. | ||
- | In a working directory of your choice, download {{: | + | In a working directory of your choice, download {{: |
<code sh> | <code sh> | ||
sqlite3 movies.db | sqlite3 movies.db | ||
</ | </ | ||
Execute the sql script: | Execute the sql script: | ||
- | < | + | < |
- | .read TP1-DBDM.sql | + | .read tp1-dbdm.sql |
</ | </ | ||
- | And turn on headers for getting attributes on results | + | And turn on headers |
< | < | ||
.headers on | .headers on | ||
+ | .mode column | ||
</ | </ | ||