-- --------------------------------------------------------------- -- Rollback forçage des cartes à être débitrices -- --------------------------------------------------------------- update carte a, operation b, operation_regul c set a.is_debitrice = c.is_carte_emetteur_debitrice where c.operation_id=b.id and b.carte_emettrice_id=a.id and c.type='C'; update carte a, operation b, operation_regul c set a.is_debitrice = c.is_carte_recepteur_debitrice where c.operation_id=b.id and b.carte_receptrice_id=a.id and c.type='C';