Select * from table where col='%keyword%'  ??Select * from table where col like '%keyword%'

解决方案 »

  1.   

    对,写错了,是Like。 在mysql里面会出现多余的结果,如何解决这个问题?
      

  2.   

    Select distinct * from table where col like '%keyword%'
      

  3.   

    keyword是一个有特殊用途的串,换其他的试试
    Select * from table where col like '%keywo%'
      

  4.   

    如何 “在col用binary属性”?
      

  5.   

    如果是用phpadmin管理数据库的话,可以在字段旁边的属性下拉框选中,如果不是,你看看creat table和alter table命令.
      

  6.   

    用Select * from table where col like '%keywo%'
      

  7.   

    Select * from table where col like binary '%keyword%';
      

  8.   

    like binary '%keyword%'
    能够解决中文的搜索问题.