create table #temp(name nvarchar(10))
insert into #temp values('one')
select * from #temp where name = 'one'
select * from #temp where name = 'one ' --one with space at end
drop table #temp
在上面我已经使用了nvarchar作为名称。 我的要求是结果应该存在的第一个选择查询,它不应该返回第二个查询。不要修剪名字。建议我可以在sql server中使用哪种数据类型?在sql server中等效的Oracle varchar2