Files
sql/README.md
2025-08-29 22:12:55 +02:00

510 B

Construire l'image

docker build -t iut/pgsql:2025-08 .

Données

Schéma

Adherent : id, nom, prenom, genre, naissance, codepostal
Famille  : code, famille, code_parent
Article  : code, article, famille_code, factpoids, prix
Ticket   : id, date_ticket, adherent_id, mode_rglt
Ligne    : id, ticket_id, article_code, prix_unitaire, quantite

Export

psql -h 127.0.0.1 -d sql -U sql -c "\copy (select * from ligne order by id) to './ligne.csv' with csv header"