Can we pass parameters to a view in SQL?

前端 未结 20 2260
庸人自扰
庸人自扰 2020-11-29 18:29

Can we pass a parameter to a view in Microsoft SQL Server?

I tried to create view in the following way, but it doesn\'t work:

create o         


        
20条回答
  •  离开以前
    2020-11-29 18:47

    As I know view can be something just like select command. You also can add parameters to this select for example in where statements like this:

     WHERE  (exam_id = @var)
    

提交回复
热议问题