Many conditions depends on IF clause within WHERE clause

前端 未结 0 881
隐瞒了意图╮
隐瞒了意图╮ 2020-11-27 15:51

How can I implement WHERE clause depends on one value, like that pseudocode below:

Select * from table
WHERE
IF(@value is not null) Id > 10 and Name = \'ex         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题