字段的类型为nvarchar,存储的中文数据形式为"8G74G6DG"但是使用 select * from table where column like '%8%' 或者 select * from table where column like '%中%'
都无法得到正确的结果,想问问如何解决,谢谢!
都无法得到正确的结果,想问问如何解决,谢谢!
insert test(col)
select '8G74G6DG'
union all
select '8G7中4G6DG'
select * from test-- 使用
select * from test where col like '%8%' -- 没有问题啊?
-- 或者
select * from test where col like '%中%'drop table test
楼主的意思是不是要选出‘中’这个字来