我在DataTables上搜索了很多关于动态连接的内容,我发现:
DT1 Left Join DT2 On DT1.Id !DT2.IdDT1 Right Join DT2 On ((DT1.Age + 2) = DT2.Age) OR (DT1.BirthDate > DT2.BirthDate))
正如您所看到的,我需要一些通用的解决方案来动态连接两个带有复杂Where</em
我正在为一个必须在WHERE子句中使用不同条件搜索表的应用程序做规范。例如(不是实际的表):select name from employees where active = true;select name from employees whereidBoss = 3;
我宁愿创建一个具有参数"type“的存储过程,也不愿创建两个具有相同代码和不同"<em