一字段值为:
hp5L|hp100|hp1000
hp5L|hp6L|hp1000
'|'为分割符
求加条件取出有  'hp100' 的行
谢谢!

解决方案 »

  1.   

    hp5L|hp100|hp1000
    hp5L|aa100|hp1000
    hp5L|Hp10|hp1000‘¦'为分割符  
    求加条件取出有    'hp10'  的行  
    谢谢!
      

  2.   

    create table #b( t varchar(100))
    insert into #b(t) values('hp5L|hp100|hp1000|hp5L|hp6L|hp1000')select * from #b where t like '%hp100%'
      

  3.   

    hp5L|hp100|hp1000
    hp5L|aa100|hp1000
    hp5L|Hp10|hp1000
    select * from s where t like '%hp10%'
    这样会取出 hp10 和 hp100两个的。
      

  4.   

    select * from b where 1=t regexp 'hp100\\|'
      

  5.   

    正在...ING,小顶一下!
    支持SQL
      

  6.   

    select * from s where t like '%|hp100|%'这个多简单,哈哈