本帖最后由 xiaobadi 于 2013-05-22 14:57:24 编辑

解决方案 »

  1.   

    select distinct col1,col2,col3
    from 
    (
    select col1,A as col2,B as col3 from tb where B like '%FF%'
    union all
    select col1,C as col2,D as col3 from tb where D like '%FF%'
    )T
      

  2.   

    select * from tt where find_in_set('FF',B)>0 OR find_in_set('FF',D)>0
      

  3.   

    select A,B
    from table1
    where find_in_set('FF',B)
    union all
    select C,D
    from table1
    where find_in_set('FF',D)
      

  4.   

    好哦,参考了以上3位版主大人的解决了,谢谢各位版主!
    find_in_set真是个好函数啊~