用单引号
select * fromt tableA where ID=1 or MC= 'strString'

解决方案 »

  1.   

    是没有用单引号
    谢谢
    jxc
    但是如果strString是中文,还是找不到数据
    我用 select * form table  where ID=1 or mc like '%strString%';
    也不行
    中文怎么比较阿??
      

  2.   

    我知道那错了
    我在jsp中获取数据没有去空格
    现在行了
    seletct * from  tableA where ID=1 or mc trim('strString')