数据库自定义函数学习

来源:互联网 发布:java面试题static 编辑:程序博客网 时间:2024/06/07 01:20

返回用户ID等于给定ID的记录集:

create function test(@id)

returns table

as

return (select * from Users where ID=@id)