SQL Server 本地化
SQL Server 是否从安装它的服务器接管本地化?或者您可以为每个实例/数据库定义区域设置吗?
当双精度值保存到数据库时,哪个设置会导致逗号或句点?
Does SQL Server take over the localization from the server it's installed on? Or can you define the locale for each instance/database?
Which setting is responsible for having comma or period when a double is saved to the database?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
SQL Server 有一个服务器排序规则,每个数据库都可以使用该服务器排序规则,也可以设置为不同的排序规则。
数据类型的格式将从数据库排序规则中获取。假设尚未为该列显式设置排序规则。
SQL Server 排序规则
SQL Server has a server collation and each database can either use the server collation or can be set to a different collation.
The format of the datatype will be taken from the Database collation. Providing that a collation has not been explicitly set for the column.
SQL Server Collations
请记住,如果您对尝试比较的列使用不同的排序规则,则需要使用 COLLATE,这将导致参数成为“不可搜索的参数”,即索引将不会用于满足该语句。
Remember that if you use different collation for columns that you are trying to compare, you will need to use COLLATE and that will cause the argument to be a "non searchable argument", that is indexes will not be used to satisfy that statement.