select * from tableName where NAME 
NAME 的值是烟台电信分公司
我想通过山东烟台电信分公司来检索这条记录
确定NAME值为烟台电信分公司的记录只有一条。
小弟在线等,,急!!!!!!!!!!!!!

解决方案 »

  1.   

    ???
    select * from tableName where NAME = '山东烟台电信分公司';???
      

  2.   

    select * from tableName where NAME='烟台电信分公司'
      

  3.   

    or
    select * from tableName where NAME like '%烟台电信分公司%'
      

  4.   

    select * from table where NAME like "%烟台电信分公司"
      

  5.   

    select count(1) from tableName where NAME='%烟台电信分公司%'
      

  6.   

    select * from tableName where NAME =
    (select substr('山东烟台电信分公司',3,7)as names from tableName)
    用这种方法
      

  7.   


    select * from tableName where instr(NAME,'山东烟台电信分公司' ) > 0
      

  8.   

    修改一下SQL codeselect*from tableNamewhere instr(NAME,'烟台电信分公司' )>0
      

  9.   

    SQL code
    select * from tableName where instr(NAME,'山东烟台电信分公司' ) > 0
    觉得很好~