本帖最后由 insanity_sniper 于 2014-03-18 14:15:32 编辑

解决方案 »

  1.   

    加上查询条件
    where find_in_set(ids, '1,2,3,4,5,6,7') > 0
      

  2.   


    where find_in_set(ids, '1,2,3,4,5,6,7') > 0  
    但是当ids=1,2时查询不到啊
      

  3.   

    where find_in_set(ids, '1,2,3,4,5,6,7') > 0
    OR
    IDS REGEXP  replace('1,2,3,4,5,6,7',',','|');
      

  4.   


     locate(ids, '1,2,3,4,5,6,7') > 0  
      

  5.   

      instr('1,2,3,4,5,6,7',ids+'') >0
      

  6.   

    将'1,2,3,4,5,6,7'->',1,|,2,|,3,|,4,|,5,|,6,|,7,'
    ids中的内容1,2->,1,2,
    IDS REGEXP  (',1,|,2,|,3,|,4,|,5,|,6,|,7,');