日期:2014-05-18 浏览次数:20514 次
create function [dbo].[applicationn](@gwUserName varchar(50)) returns varchar(20) begin DECLARE @aver varchar(20) if exists(select * from AssessmentSE where AskUserName=@gwUserName and AskState='未审核') set @aver='你己经申请过了!' else set @aver='申请成功' return @aver end select * from applicationn('wb')
select dbo.applicationn('wb')