Files

30 lines
1.3 KiB
MySQL
Raw Permalink Normal View History

2025-08-28 15:01:31 +02:00
truncate table adherent;
truncate table famille;
truncate table article;
2025-11-02 07:35:49 +01:00
truncate table market.ticket;
truncate table market.ligne;
2025-09-14 22:12:09 +02:00
truncate table marque;
truncate table fournisseur;
2025-08-28 15:01:31 +02:00
\COPY adherent FROM '/tmp/adherent.csv' (FORMAT CSV, header, ENCODING 'UTF8');
\COPY famille FROM '/tmp/famille.csv' (FORMAT CSV, header, ENCODING 'UTF8');
\COPY article FROM '/tmp/article.csv' (FORMAT CSV, header, ENCODING 'UTF8');
2025-11-02 07:35:49 +01:00
\COPY market.ticket FROM '/tmp/ticket.csv' (FORMAT CSV, header, ENCODING 'UTF8');
\COPY market.ligne FROM '/tmp/ligne.csv' (FORMAT CSV, header, ENCODING 'UTF8');
2025-09-14 22:12:09 +02:00
\COPY marque FROM '/tmp/marque.csv' (FORMAT CSV, header, ENCODING 'UTF8');
2025-10-31 07:42:56 +01:00
\COPY fournisseur FROM '/tmp/fournisseur.csv' (FORMAT CSV, header, ENCODING 'UTF8');
\COPY produit FROM '/tmp/produits/cereales_petitdejeuner.csv' (FORMAT CSV, header, ENCODING 'UTF8');
2025-11-01 16:36:49 +01:00
2025-11-02 16:21:22 +01:00
/*
2025-11-02 07:47:26 +01:00
\COPY personne(prenom, nom, telephone, ville) FROM '/tmp/personne1.csv' (FORMAT CSV, header, ENCODING 'UTF8');
\COPY societe(societe) FROM '/tmp/societe1.csv' (FORMAT CSV, header, ENCODING 'UTF8');
2025-11-02 09:24:15 +01:00
SELECT bank.insert_account_random(ARRAY[1]);
SELECT bank.insert_account_random(ARRAY[2]);
SELECT bank.insert_account_random(ARRAY[3]);
SELECT bank.insert_account_random(ARRAY[4]);
SELECT bank.insert_account_random(ARRAY[5],'USD');
SELECT bank.insert_account_random(ARRAY[6,11]);
2025-11-02 16:21:22 +01:00
*/