[此贴子已经被作者于2006-1-23 20:02:50编辑过]
CREATE FUNCTION [dbo].[passinfo] (@cj int ) RETURNS varchar(10) AS BEGIN declare @r varchar(10) if @cj>=60 set @r = '及格' else set @r = '不及格' return @rEND