SQL Server 2008 - Conditional Query

前端 未结 6 1506
说谎
说谎 2020-12-10 19:09

SQL is not one of my strong suits. I have a SQL Server 2008 database. This database has a stored procedure that takes in eight int parameters. For the sake of keeping this q

6条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-10 19:42

    .... Where field=case @isActive WHEN -1 THEN field ELSE @isActive END ....

提交回复
热议问题