nchar长度不够默认补位

create table RF_Sys_Group
(
ID nchar(36) not null
constraint PK_RF_Sys_Group
primary key,
NAME nchar(20) not null
)
go

nchar会在不够的数据末尾补充空字符直到位数补齐。
注:20指的是字符个数,而不是字节数。
posted @ 2022-06-16 22:13  love/coder  阅读(63)  评论(0编辑  收藏  举报