此上下文中不允许列 "dbo",并且找不到 user-defined 函数或聚合 "dbo.getListOfConference"
Column "dbo" is not allowed in this context, and the user-defined function or aggregate "dbo.getListOfConference" could not be found
我的自定义函数有问题。我希望它返回 table 我的会议用户的姓名。这是代码:
CREATE FUNCTION dbo.getListOfConference(@idConference int)
RETURNS Table
AS
RETURN
SELECT Employee_name FROM dbo.Employee WHERE ID_Employee
IN (SELECT ID_Employee FROM dbo.Conference WHERE ID_Conference LIKE @idConference);
消息:
Column "dbo" is not allowed in this context, and the user-defined function or aggregate "dbo.getListOfConference" could not be found.
当我想像这样检查此功能时显示此消息:
PRINT dbo.getListOfConference(254712);
您有一个 table 值函数,但您想将其用作标量函数。没办法。
您可以从中select:
select *
from dbo.getListOfConference(254712);
我的自定义函数有问题。我希望它返回 table 我的会议用户的姓名。这是代码:
CREATE FUNCTION dbo.getListOfConference(@idConference int)
RETURNS Table
AS
RETURN
SELECT Employee_name FROM dbo.Employee WHERE ID_Employee
IN (SELECT ID_Employee FROM dbo.Conference WHERE ID_Conference LIKE @idConference);
消息:
Column "dbo" is not allowed in this context, and the user-defined function or aggregate "dbo.getListOfConference" could not be found.
当我想像这样检查此功能时显示此消息:
PRINT dbo.getListOfConference(254712);
您有一个 table 值函数,但您想将其用作标量函数。没办法。
您可以从中select:
select *
from dbo.getListOfConference(254712);