[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [HS] MySQL: valeur par défaut



        Bonjour,


Le lundi 23 mai 2022, Olivier a écrit...


> Exemple:
> SELECT IFNULL("ABC", macolonne2) AS foo WHERE macolonne1=123

Peut-être :
select coalesce((select macolonne2 from matable where macolonne1=123),
        'ABC');

-- 
jm


Reply to: