Wissen Sie nicht, wie ISNULL() zu ISNOTNULL() in MS SQL geändert wird? Etwas wie IFNULL?Unterstützt SQL Server 2014 Funktionen wie ISNOTNULL()?
Ich muss es in einem Schritt tun.
Set @EMAILhtml = @CSS + @TEXT1 + isnull(@TEXT1,'') + isnull(@table1,'') + isnull(@text2,'') + isnull(@table2,'') + @TEXT3
Aber ich brauche so etwas wie
Set @EMAILhtml = @CSS + @TEXT1 + isNOTnull(@TEXT1,'') + isnull(@table1,'') + isnull(@text2,'') + isnull(@table2,'') + @TEXT3
Dank.
Das macht keinen Sinn. 'isnull' ist das gleiche wie' coalesce', aber für 2 Parameter. Es ist nur ein Standardwert im Falle eines NULL. z.B. isnull (x, 'Hey! x war null!'). Ähnlich wie 'case wenn x nicht null ist, dann x else 'Hey! x war null! ' Ende –