无法找到任何一列""或用户定义的函数或聚合"",或名称不明确

时间:2018-01-03 18:24:44

标签: sql-server

CREATE FUNCTION Person_Details (@P_ID int)
RETURNS TABLE
AS
RETURN(SELECT Person_ID,P_F_Name 
FROM Person_tbl
WHERE Person_ID=@P_ID) 

SELECT dbo.Person_Details(1)

--WHAT SHOULD I DO HERE BECAUSE IM STILL A NEWBIE

1 个答案:

答案 0 :(得分:1)

尝试:

SELECT * FROM dbo.Person_Details(1)