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%'
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/archive/2009/03/12/1409672.html