create function GetParentID (@ID int)
returns int
as
Begin
Declare @pid int
set @pid =0
select @pid = classparentid from uds_class where classid = @id
return @pid
End
returns int
as
Begin
Declare @pid int
set @pid =0
select @pid = classparentid from uds_class where classid = @id
return @pid
End