[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [noalyss-generale] Gestion des exercices
From: |
Mélopie |
Subject: |
Re: [noalyss-generale] Gestion des exercices |
Date: |
Tue, 6 Sep 2016 09:24:56 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 |
Bonjour Dany,
Voici ce que j'obtiens:
dossier25=# select jrn_def_id,jrn_def_name from jrn_def;
jrn_def_id | jrn_def_name
------------+-----------------------
4 | Opération Diverses
2 | Vente
3 | Achat
5 | FinGiro
1 | FinGold
6 | BugShit
Peut-on en déduire le fichier "efface.sql" suivant?
begin;
SET search_path TO comptaproc,public;
delete from jrnx where j_jrn_def = BugShit ;
-- c'est le nom du journal à effacer parmi les journaux
delete from jrnx where jr_def_id = 6 ;
-- Là, c'est son identifiant
delete from jrn_def where jrn_def_id = 6;
commit;