如何整理桌子和桌子?相关图书馆 [英] How do I collate a table & related Library

查看:67
本文介绍了如何整理桌子和桌子?相关图书馆的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,



我有一个包含大量信息的地质SQL Server数据库。对于地质数据输入,我们创建了一个地质代码库。这些代码区分大小写。但由于我们的数据库不区分大小写,如果数据输入人输入代码,例如实际代码是Absa,但如果输入的内容类似于absa或ABSA,系统会接受它,这会给我们解释带来麻烦。是否可以将表的Colology of Lithology_Code列更改为区分大小写,以便它只接受与库代码匹配的代码。如果有人试图输入absa或ABSA或aBSa,则不应接受。请指导我并帮我编写代码。我是sql server的新用户。由于现有数据库具有这些混合代码,它是否会对现有数据产生任何影响,在更改此列的整理后,我是否可以根据库代码更改现有数据。



非常感谢!



亲切的问候,



Dinesh

Hello,

I have a Geology SQL Server database with huge information. For geology data entry, we have created a library of the of the geology codes. These codes are case sensitive. But since our database is case insensitive, if the data entry person enter code e.g. Actual codes is "Absa" but if it is entered like absa or ABSA, system will accept it which is creating trouble for us in interpretation. Is it possible to change the Collation of Lithology_Code column of the table only to case sensitive so that it will accept only the codes matching with the library codes. if someone tries to enter absa or ABSA or aBSa it should not accept. Please guide me and help me with a code. I am new user to sql server. Since the existing database has these mix codes, will it make any difference to the existing data and after changing the collation of this column, can I change the existing data as per library codes.

Thanks a lot!

Kind Regards,

Dinesh

推荐答案

您实际上可以在列级别定义排序规则。请查看设置或更改列整理 [ ^ ]
You can actually define the collation at column level. Have a look at Set or Change the Column Collation[^]


这篇关于如何整理桌子和桌子?相关图书馆的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆