,VARCHAR值ISNULL,COALESCE如何使用ISNULL爲int值的函數
select Complaint.complaintProfileId,ISNULL(T2.MMB_id,'Notfound') as MMBId
from complaints c join T2..
on T2.sno = c.sno
該查詢給我一個錯誤
Conversion failed when converting the varchar value 'Notfound' to data type int.
MMB_id is a int
感謝 孫