petit dejeuner

This commit is contained in:
2025-09-15 07:13:30 +02:00
parent 8d30a0a4bc
commit 23b3038150
3 changed files with 281 additions and 280 deletions

View File

@@ -48,13 +48,14 @@ comment on column produit.hydrogenocarbonate IS 'HCO₃⁻ en mg/L';
comment on column produit.silice IS 'SiO₂ en mg/L';
comment on column produit.fluor IS 'F en mg/L';
-- 4. importer les produits
\COPY produit FROM '/tmp/produits/cereales_petitdejeuner.csv' (FORMAT CSV, header, ENCODING 'UTF8');
\COPY produit FROM '/tmp/produits/confiture.csv' (FORMAT CSV, header, ENCODING 'UTF8');
\COPY produit FROM '/tmp/produit.csv' (FORMAT CSV, header, ENCODING 'UTF8');
-- 5. ajouter une colonne vecteur
alter table produit
add column nutrition vector(10);
add column nutrition vector(10);
-- 6. Création de lindex ivfflat
create index produit_nutrition_hnsw