petit dejeuner
This commit is contained in:
@@ -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 l’index ivfflat
|
||||
create index produit_nutrition_hnsw
|
||||
|
||||
Reference in New Issue
Block a user