把语句改成:
select Age from UserTable where UserName like '大哥'
最好是:
select Age from UserTable where ltrim(rtrim(UserName)) like '大哥'
select Age from UserTable where UserName like '大哥'
最好是:
select Age from UserTable where ltrim(rtrim(UserName)) like '大哥'
2.使用N前缀查询中文纪录:select * from tablename where fieldsname=N'中国'
SQL SERVER有个全文检索功能,但我一直不知道在完成一系列设置以后如何让他支持中文的全文检索。例如select * from b where CONTAINS (content,N'%求%')
即使用诺亚方舟的办法也只能对有空格隔开的中文词进行检索。我想这是因为英文中每个单词之间有空格隔开,而中文没有的原因。
有高手知道如何让SERVER支持对中文的字进行全文检索吗?
Unicode Collation 应该是 Chinese Punctuation
运行mysql7\binn\rebuildm.exe 重设吧
另外控制面板中的区域设置为中国