我想运行以下查询。@city
值将在运行时提供
Select * from Emp
where empno in (
if( @city = 'Bangalore')
Begin
Select Empno from Emp
where EmpCity = @city
End
Else
Begin
Select empno from Emp
End
)
请通过提供替代方案来帮助我