14 Star 41 Fork 83

openGauss / community

 / 详情

使用length返回长度问题

待办的
缺陷
创建于  
2022-07-25 11:48

opengauss上操作

select length('南京'::char(100));

select length ('abc'::char(100));

select length ('南京旅游'char(100));

存在疑问:1.由于char为定长,所以对于字符长度没有达到设定大小的会用空格补齐,长度应该显示100
输入图片说明

评论 (4)

rentc 创建了咨询

Hey @rentc, Welcome to openGauss Community.
All of the projects in openGauss Community are maintained by @opengauss-bot.
That means the developers can comment below every pull request or issue to trigger Bot Commands.
Please follow instructions at Here to find the details.

/sig sqlengine

opengauss-bot 添加了
 
sig/sqlengine
标签
opengauss-bot 添加了
 
kind/bug
标签
opengauss-bot 负责人设置为杨皓
zhangxubo 任务类型咨询 修改为缺陷

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(3)
5622128 opengauss bot 1581905080 5227357 xiangxinyong 1578982846
1
https://gitee.com/opengauss/community.git
git@gitee.com:opengauss/community.git
opengauss
community
community

搜索帮助

53164aa7 5694891 3bd8fe86 5694891