当前位置:网站首页>Gbase8s database specifies the comparison order with set collation
Gbase8s database specifies the comparison order with set collation
2022-07-22 18:10:00 【Like to eat radish ice cold】
For all database servers previously accessed in the current session ,SET COLLATION With locale The specified comparison order replaces when
The comparison order before . for example , This example specifies the comparison order of Chinese :
EXEC SQL set collation “zh_cn.gb18030-2000”;
If the activity of the next database server in this session is right NCHAR or NVARCHAR sorted , Follow the Chinese
Comparison order .
In the same conversation , Assume the following SET NO COLLATION The statement restores the DB_LOCALE Set up :
EXEC SQL set no collation;
stay SET NO COLLATION After performing , Subsequent comparisons in the same session are based on this DB_LOCALE Set up . however
and , Any database object you create in Chinese cross reference order , Such as checking constraints 、 Indexes 、 Ready objects 、 Trigger or
UDR, Will continue to apply Chinese comparison to NCHAR and NVARCHAR data type .
stay NLSCASE INSENSITIVE Comparison in the database
stay NLSCASE INSENSITIVE In the database , stay NCHAR and NVARCHAR The comparison operation on the data does not distinguish words
Parent case , So that the database server will repeat the case variables in the string composed of letters with the same sequence as the string
Handle . The cross reference list arranges these case sensitive repeated contents according to the order in which they are retrieved , therefore , With a string
alpha The list of comparisons of case variables of may appear in any order , For example, the following sequence , Regardless of the case of variables :
alpha
Alpha
alpha
ALPHA
Alpha
For more information , see also stay NLSCASE INSENSITIVE Duplicate rows in the database and In case sensitive data
In the library NCHAR and NVARCHAR expression .
边栏推荐
猜你喜欢
日期类的理解学习
ORACLE语句调整
Dokcer运行Nacos容器自动退出问题
学IT,你后悔了么?
Teach you to write makefile files from 0
学点编程:防失业“疫苗”
Web3 traffic aggregation platform starfish OS gives players a new paradigm experience of metauniverse
How to carry out efficient data governance? Index management and data traceability help!
并发模型值Actor和CSP
[opencv introduction practice] use the front camera of the computer for face detection
随机推荐
GBase8s数据库SET AUTOFREE 语句
Go slice, set, simple explanation
力扣练习——28 拼接最大数
Web3 sharing
会议OA项目之会议发布功能
融合注意力机制和BSRU的工业互联网安全态势预测方法
路由协议是什么
等额本金递增还款/等额本金递减按揭房贷还款计算器
基础SQL Server 操作问题——仅当使用了列表并且IDENTITY_INSERT为ON时,才能为表中的标识列制定显示值
ORACLE语句调整
43. 字符串相乘
02-线性结构2 一元多项式的乘法与加法运算(链表求解)
以SPI的仿真文件学习TB写法
Anaconda 环境迁移
Replace spaces in niuke.com
力扣练习——31 有效的井字游戏
Excel import export controller
Evolution of multi activity in different places
【案例分享】配置IS-IS的路由渗透功能
Logistic regression (formula derivation +numpy Implementation)