sql server 不是可以识别的 内置函数名称
自定义函数:
create Function func_name()
returns int
as
begin
declare @temp int
set @temp = (select count(*) from t_xxx)
return @temp
end
执行 select func_name()
报错:
[SQL]select func_name()
[Err] 42000 - [SQL Server]'func_name' 不是可以识别的 内置函数名称。
需要使用如下sql语句:dbo = databaseobject
select dbo.func_name()
再次执行create 语句
[Err] 42S01 - [SQL Server]数据库中已存在名为 'func_name' 的对象。