查询包含有 ^ 字符的记录title like '%^%' 不行

解决方案 »

  1.   

    declare @t table(n varchar(10))
    insert into @t 
    select '^' union all
    select '123123' select * from @t where charindex('^',n)>0
    /*
    (2 行受影响)
    n
    ----------
    ^(1 行受影响)*/
      

  2.   


    declare @t table(n varchar(10))
    insert into @t 
    select '^' union all
    select '123123' select * from @t where n like '%^%'/*
    (2 行受影响)
    n
    ----------
    ^(1 行受影响)*/
      

  3.   

    试了下,SQL  2000 行,ACCESS库怎么不行呢,难道A库不支持搜索 ^
      

  4.   

    ACCESS库   是不是需要转异呀!?
      

  5.   

    改成
    title like '%[^]%'