去空空格 null sql


select isNull(max(EvenId),0) as teevenid from  info_hotelevent where hotelcode like '4506020003%'

select max(EvenId) as teevenid from  info_hotelevent where hotelcode like '4506020003%'

原文地址:https://www.cnblogs.com/liufei88866/p/1409672.html