请求一SQL语句!急
一字段值为:
hp5L|hp100|hp1000
hp5L|hp6L|hp1000
'| '为分割符
求加条件取出有 'hp100 ' 的行
谢谢!
——解决方案——————–
create table #b( t varchar(100))
insert into #b(t) values( 'hp5L|hp100|hp1000|hp5L|hp6L|hp1000 ')
select * from #b where t like '%hp100% '
——解决方案——————–
帮忙顶一下
——解决方案——————–
select * from b where 1=t regexp 'hp100//| '
——解决方案——————–
给字段右边加上个| 然后查 |hp100|
——解决方案——————–
正在…ING,小顶一下!
支持SQL
——解决方案——————–
select * from s where t like '%|hp100|% '
这个多简单,哈哈