NAME     contains                       (textbox)
does not contain
starts with
ends with
is
is not FRIENDS
contains                       (textbox)
does not contain
starts with
ends with
is
is not
OTHER    is                       (textbox)
is not
is greater than
is less than
is in the range
……………………………………………………
这些条件都是可以由用户点击增加和减少的
怎么写这个组合啊??
头痛!!!!!!!!!!!

解决方案 »

  1.   

    根据用户选择拼成SQL语句,这有难的吗?
      

  2.   

    前台就可以解决的啊!前台使用一个str=str+'选择字符串'就可以实现地
      

  3.   

    不知各位是否考虑了这个问题
    没有的话就别说简单
    如果你能拼好这个一个Sql语句的话你们就可以自己做一个相当不错的搜索引擎了!!!
      

  4.   

    例如:
         条件1:NAME     contains  harry
         条件2:NAME     contains          cocomic
         条件3:NAME     isnot             harry
         条件4:OTHER    is in the range   from 2  to 6
         条件5:OTHER    is less than      5
         条件6:OTHER    is not            4