Case SQL 1 Ajouter une chaîne
SELECT
CASE WHEN @var1 = 1 THEN 'message 1 ' ELSE '' END +
CASE WHEN @var2 = 1 THEN 'message 2 ' ELSE '' END as messages
Cristiano Santos
SELECT
CASE WHEN @var1 = 1 THEN 'message 1 ' ELSE '' END +
CASE WHEN @var2 = 1 THEN 'message 2 ' ELSE '' END as messages