SQL 关键字或函数substring,charindex
假如特定字符串结尾:'TEST'
声明一个表 A,有一个字段为a 类型为char(10)
假如存在一条记录:'100000TEST'
select * from A where substring(a,7,4)='TEST'
declare @a char(10)
select @a=a from A
if charindex('TEST' @a)>0 代表存在!
SELECT customer .customer_name
FROM customer
WHERE customer_street like '%Hill%'
你看下这样写有没有结果,,,
目测你的hill后面好像有空格,,,你可以实际的看下数据