how to call scalar function in sql server 2008

后端 未结 4 600
迷失自我
迷失自我 2020-12-30 18:26

I have created a Scalar Functions, it was created successfully, but when I call the function using select statement, it says Invalid object name \'dbo.fun_functional_score\

4条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-30 19:08

    Your syntax is for table valued function which return a resultset and can be queried like a table. For scalar function do

     select  dbo.fun_functional_score('01091400003') as [er]
    

提交回复
热议问题