日期:2014-05-18 浏览次数:20734 次
if OBJECT_ID('SelectResourceNameByModel') is not null drop proc SelectResourceNameByModel go create proc SelectResourceNameByModel @EqpType nvarchar(128) as begin if @EqpType='' begin select ttr.ResourceId,ttr.Name from CoreDataModel.T_Resource ttr where 1=1 order by ttr.Name end if @EqpType<>'' begin select ttr.ResourceId,ttr.Name from CoreDataModel.T_Resource ttr where 1=1 and model='d10' order by ttr.Name end end GO