select * from dbo.d_check_applyinfo
where item_name like ‘常规%’
select 字段的集合 from 表名 where 某个字段的名字 like 匹配的值
匹配的条件通常含有通配符
通配符:
%
_【下划线,不是减号,表示任意单个字符】
[a-f]
a到f中的任意单个字符,只能是abcdef中的任意单个字符
[a,f]
a或f
[^a-f]
不是abcdef里面的任意单个字符
注意:匹配的条件必需要用单引号框起来 不能省略,也不能改用双引号
通配符
select * from dbo.d_check_applyinfo
where item_name like ‘_常%’
select * from dbo.d_check_applyinfo
where item_name like ‘%\规%’
select * from dbo.d_check_applyinfo
where item_name like ‘%_肌酶%’