返回用户ID等于给定ID的记录集: create function test(@id) returns table as return (select * from Users where ID=@id)