select * from T where operator = (case when @type = 0 then @o1 else is not null end) 主要是想根據@type 用不同的條件當@type = 0 時 operator = @o 否則 operator is not null 請問各位大俠SQL語句怎么寫,最好不要用字符串拼接
sql語句怎么實現(xiàn)動態(tài)條件
MMTTMM
2018-07-24 10:13:12