SQL,根据不同条件拼接不同SQL,非if拼接 改为SQL where形式

(参数=0or(参数=1 and 其他条件)or(参数=2 and 其他条件)
原文地址:https://www.cnblogs.com/xiaoshi657/p/5217457.html