【发布时间】:2010-04-27 08:11:08
【问题描述】:
我有如下表
id, employee_no, survey_no, name
1 test 1 test_name
2 test2 1 test_name2
3 test3 1 test_name3
4 test4 2 test_name4
如何通过将下面的AND组合成一个IN语句来查询Restriction.in?
IN[ (if(survey_no==1) && employee_no== 'test') ,
(if(survey_no==1) && employee_no== 'test2') ,
...
]
【问题讨论】: