Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的数据库中有一个相当短的(14 字节)bytea数据列。我想将其打印为十六进制字符串。
bytea
我怎么做?
基于这个答案,我发现我的解决方案是
SELECT encode(my_column::bytea, 'hex') FROM my_table;