gpt4 book ai didi

postgresql - 为什么 char 数据类型会自动转换为 bpchar?

转载 作者:行者123 更新时间:2023-11-29 11:31:31 28 4
gpt4 key购买 nike

有没有可能将CHAR数据类型自动转换成bpchar

我们已经看到从应用程序端选择列 datatypeCHAR 但创建了数据库级别 bpchar 的场景。

谁能帮我解决这个问题?

最佳答案

https://www.postgresql.org/docs/current/static/datatype-character.html

character(n), char(n) fixed-length, blank padded

在bpchar中有效,b代表blank,p代表padded,bpchar等同于char(n)character(n),一个空白填充到 n 长度的字符串...

更多引述:

https://www.postgresql.org/docs/current/static/typeconv-query.html

bpchar (“blank-padded char”, the internal name of the character data type)

关于postgresql - 为什么 char 数据类型会自动转换为 bpchar?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51421269/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com