我在 SQLServer 2005 中编写了以下函数
以下是函数:
create function fnBillParticulars()
return table
as
return (select * from billParticulars where Id='2425')
go
它给了我以下错误:
1.Msg 156, Level 15, State 1, Procedure fnBillParticulars, Line 2
Incorrect syntax near the keyword 'return'.
2.Msg 178, Level 15, State 1, Procedure fnBillParticulars, Line 4
A RETURN statement with a return value cannot be used in this context.
可能是什么错误?
请帮我。