sqlserver uppercase_SQLServer6.5的查找怎么才能是区分大小写的?

博客指出SQL Server建库时的排序顺序很重要,它决定查询结果集的行顺序,且同一服务器不能有不同排序顺序的数据库,不同排序顺序的服务器间不能备份和恢复数据库。安装时需选对排序顺序,否则要重建数据库和重新加载数据,还给出排序顺序影响比较和排序的示例。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

由 smartkid » 星期三, 1999年11月24日 18:42

和你建库时的SORT ORDER 有关,下面是从手册中找出的一段

A sort order also determines the sequence of rows in the result set of a query.

The sort orders available depend on the character set you chose. You cannot have different databases with different sort orders on the same server. In addition, you cannot back up and restore databases between servers configured for different sort orders.

--------------------------------------------------------------------------------

Important It is critical that you select the correct sort order when you install SQL Server. If you need to change sort orders after installation, you must rebuild your databases and reload your data.

--------------------------------------------------------------------------------

Here is an example of how the sort order affects comparisons and sorting.

Sort order Comparison examples Sorting example

Dictionary order, case-insensitive A = a,

Binary A <> a,

Dictionary order, case-sensitive A <> a

Dictionary order, case-insensitive, UpperCase preference A = a

Dictionary order, case-insensitive, accent-insensitive A = a

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值