是否有可能将 CHAR
数据类型自动转换为 bpchar
?
我们已经看到从应用程序端选择列 datatype
是 CHAR
但创建了数据库级 bpchar
的场景。
谁可以帮我这个事?
最佳答案
https://www.postgresql.org/docs/current/static/datatype-character.html
有效地在 bpchar b 代表空白和 p 代表填充并且 bpchar
与 char(n)
或 character(n)
相同,空白填充到 n
长度字符串...
更多报价:
https://www.postgresql.org/docs/current/static/typeconv-query.html
关于postgresql - 为什么 char 数据类型会自动转换为 bpchar?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/51421269/