isnull(列名,'无')没有显示“无”

SELECT ProductName+'-'+ISNULL(NULLIF(Priority, ''), '无值') FROM Doctor_Product_Priority WHERE DoctorCode='HCP011290'
UNION
SELECT ProductName+'-'+ISNULL(NULLIF(Priority, ''), '无值') FROM Doctor_Product_Priority WHERE SpeakerCode='KOL0002162'

posted @ 2024-06-25 11:58  小易儿  阅读(3)  评论(0编辑  收藏  举报