select kleavenote.*,dept.dname from kleavenote join dept on dept.id=kleavenote.per_depid
where
(int_1 =1 and int_2=0)
and(
(int_4=-1 and int_3=-1)
or
(int_3=0 and int_4=-1)
or
(int_4=1 and int_3=-1))
如上面这条sql 如果写成SubSonic的方式应该怎么写?
那位高手能帮忙看看? 偶是一个菜鸟.. 刚刚学....
请高手们不要嫌俺提问的幼稚.....