Est-il possible d'avoir une contrainte sur un champ CHECK du type :
ChampA='TOTO' si ChampB in ('TITI','TUTU') and ChampC <> 'C'
Merci par avance pour vos réponses,
Est-il possible d'avoir une contrainte sur un champ CHECK du type :
ChampA='TOTO' si ChampB in ('TITI','TUTU') and ChampC <> 'C'
Merci par avance pour vos réponses,
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6 alter table t add constraint toto_titi_c check ( champa= case when champb in ('TITI','TUTU') and champc<>'C' then 'TOTO' end);
Super,
Merci
Partager