如何调用函数

怎么调用函数create function se()returns intbegindeclare @wb intselect @wb(select AVG(cc) FROM dbo.

怎么调用函数
create function se()
returns int
begin 
declare @wb int
select @wb=(select AVG(cc) FROM dbo.aa WHERE bb='a' GROUP BY bb)
return @wb
end

declare @aa int
select @aa=se()

调用时出现'se' 不是可以识别的 内置函数名称。

[解决办法]

SQL code
select @aa=dbo.se()
[解决办法]
SELECT @AA=DBO.SE();