{"Entry":{"collection":"func","key":"to-hex","name":"to_hex","aliases":[],"metadata":{"changed_in":["8.1"],"changes":[{"descriptions_changed":false,"doc_overhaul":false,"from":"7.2","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"added","to":"7.3"},{"descriptions_changed":false,"doc_overhaul":false,"from":"8.0","group_changed":null,"signatures":{"added":["to_hex ( number int or bigint ) → text"],"removed":["to_hex ( number integer or bigint ) → text"]},"status":"changed","to":"8.1"},{"descriptions_changed":false,"doc_overhaul":true,"from":"12","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"13"},{"descriptions_changed":true,"doc_overhaul":false,"from":"16","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"17"}],"content_hash":"89c6161c61354ea7e7ce8cd89efad51954fa4acee579f945b73152a7080b92d3","derived_content_hash":"76f9fc3a3834f02d523477cf13afbf471a30a0a4a80b444151c7fd9e961be907","documentation_refresh":{"batch":"20261113","original_source_rev":"wiki-repair-20261023:9e3af00d844f15423c0957b73303d68f4d09f7fed878776bf68d6b4140818c64","versions":{"14":"14.25","15":"15.20","16":"16.16","17":"17.12","18":"18.7","19":"19rc2"}},"first_version":"7.3","group":"string","group_label":"String Functions And Operators","groups":["string"],"imported_at":"2026-09-27T17:57:28.448119+08:00","last_version":"20","name":"to_hex","name_key":"to_hex","position":3051,"present_in":["7.3","7.4","8.0","8.1","8.2","8.3","8.4","9.0","9.1","9.2","9.3","9.4","9.5","9.6","10","11","12","13","14","15","16","17","18","19","20"],"repair_provenance":{"original_source_revision":"wiki-repair-20261023:5a39274fce6cc249dfd31a8946c4e35086f86d34994cbd44c5f9dce05d197d18","receipt_sha256":"dc108790a3114b72ec8f0a2d1c64c3d62616c9cfbb9900591aca01414859a6ce","repair":"wiki-repair-20261023"},"signature":"to_hex ( integer ) → text","signature_count":2,"slug":"to-hex","source_rev":"wiki-repair-20261023:9e3af00d844f15423c0957b73303d68f4d09f7fed878776bf68d6b4140818c64","summary":"Converts the number to its equivalent two's complement hexadecimal representation.","summary_zh":""}},"Definition":{"Collection":"func","Key":"to-hex","SourceDatabase":"center","Version":"18","SourceTable":"func","SourceKey":"to-hex","SourceRevision":"wiki-repair-20261023:9e3af00d844f15423c0957b73303d68f4d09f7fed878776bf68d6b4140818c64","Facts":{"description":"Converts the number to its equivalent two's complement hexadecimal representation.","description_html":"Converts the number to its equivalent two's complement hexadecimal representation.","description_zh":"将数字转换为等价的十六进制补码表示。","description_zh_html":"将数字转换为等价的十六进制补码表示。","doc":{"anchor":"FUNCTIONS-STRING-OTHER","file":"functions-string.html","sha256":"dbe9f91e55c35969d99a8d2697b6f7bd5388a24ccc2b89706a666f176025f1e2","slug":"18"},"documentation_revision":{"inputs":[{"file":"functions-string.html","kind":"same-version-reviewed-manual","locale":"en","sha256":"dbe9f91e55c35969d99a8d2697b6f7bd5388a24ccc2b89706a666f176025f1e2","version":"18.7"},{"file":"functions-string.html","kind":"same-version-reviewed-manual","locale":"zh-Hans","sha256":"7eecd3bb343149124be0476a539f3c682476eab2a15489a0e0ad06fbb769ea9e","version":"18.7"}],"release":"18.7","runtime_remeasured":false,"source_revision":"pgdoc:b9f0e7232f60f380d642ac9b99226606c254b552"},"group":"string","group_label":"字符串函数和操作符","lang":"en","layout":"table-new","pages":["functions-string.html"],"prose_only":false,"signatures":[{"description":"Converts the number to its equivalent two's complement hexadecimal representation.","description_html":"Converts the number to its equivalent two's complement hexadecimal representation.","description_zh":"将数字转换为等价的十六进制补码表示。","description_zh_html":"将数字转换为等价的十六进制补码表示。","examples":[{"expr":"to_hex(2147483647)","result":"7fffffff"},{"expr":"to_hex(-1234)","result":"fffffb2e"}],"html":"\u003ccode class=\"function\"\u003eto_hex\u003c/code\u003e ( \u003ccode class=\"type\"\u003einteger\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003etext\u003c/code\u003e","returns":"text","text":"to_hex ( integer ) → text","zh_from":"same-version-manual"},{"description":"Converts the number to its equivalent two's complement hexadecimal representation.","description_html":"Converts the number to its equivalent two's complement hexadecimal representation.","description_zh":"将数字转换为等价的十六进制补码表示。","description_zh_html":"将数字转换为等价的十六进制补码表示。","examples":[{"expr":"to_hex(2147483647)","result":"7fffffff"},{"expr":"to_hex(-1234)","result":"fffffb2e"}],"html":"\u003ccode class=\"function\"\u003eto_hex\u003c/code\u003e ( \u003ccode class=\"type\"\u003ebigint\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003etext\u003c/code\u003e","returns":"text","text":"to_hex ( bigint ) → text","zh_from":"same-version-manual"}],"translation_provenance":{"inputs":[{"kind":"current-pgdoc-translation","path":"/Users/vonng/pgsty/pgdoc/zh/18/html/functions-string.html","sha256":"0446377e0eccc9299099dc4b4b293204c337e3abefcdc396e9698bc54dd1080b"}],"kind":"same-version-pgdoc","locale":"zh-Hans","source_revision":"b1b500221dbe5437cfca004d6b04d3f6e422765d","version":"18"},"zh_from":"same-version-manual"},"ManualEvidence":{"doc":{"anchor":"FUNCTIONS-STRING-OTHER","file":"functions-string.html","sha256":"dbe9f91e55c35969d99a8d2697b6f7bd5388a24ccc2b89706a666f176025f1e2","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"to-hex","SourceDatabase":"center","Version":"18","Locale":"en","Title":"to_hex","Summary":"Converts the number to its equivalent two's complement hexadecimal representation.","BodyHTML":"Converts the number to its equivalent two\u0026#39;s complement hexadecimal representation.","SourceRevision":"wiki-repair-20261023:9e3af00d844f15423c0957b73303d68f4d09f7fed878776bf68d6b4140818c64","ContentHash":"f13be8341513527dc368c13208e0a53170d1d38ff3eb2a90f02634bf4b04f2e9","Payload":{"description":"Converts the number to its equivalent two's complement hexadecimal representation.","description_html":"Converts the number to its equivalent two's complement hexadecimal representation.","signatures":[{"description":"Converts the number to its equivalent two's complement hexadecimal representation.","description_html":"Converts the number to its equivalent two's complement hexadecimal representation.","description_zh":"将数字转换为等价的十六进制补码表示。","description_zh_html":"将数字转换为等价的十六进制补码表示。","examples":[{"expr":"to_hex(2147483647)","result":"7fffffff"},{"expr":"to_hex(-1234)","result":"fffffb2e"}],"html":"\u003ccode class=\"function\"\u003eto_hex\u003c/code\u003e ( \u003ccode class=\"type\"\u003einteger\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003etext\u003c/code\u003e","returns":"text","text":"to_hex ( integer ) → text","zh_from":"same-version-manual"},{"description":"Converts the number to its equivalent two's complement hexadecimal representation.","description_html":"Converts the number to its equivalent two's complement hexadecimal representation.","description_zh":"将数字转换为等价的十六进制补码表示。","description_zh_html":"将数字转换为等价的十六进制补码表示。","examples":[{"expr":"to_hex(2147483647)","result":"7fffffff"},{"expr":"to_hex(-1234)","result":"fffffb2e"}],"html":"\u003ccode class=\"function\"\u003eto_hex\u003c/code\u003e ( \u003ccode class=\"type\"\u003ebigint\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003etext\u003c/code\u003e","returns":"text","text":"to_hex ( bigint ) → text","zh_from":"same-version-manual"}]}},"RequestedLocale":"en","Fallback":false,"Versions":["10","11","12","13","14","15","16","17","18","19","20","7.3","7.4","8.0","8.1","8.2","8.3","8.4","9.0","9.1","9.2","9.3","9.4","9.5","9.6"],"Locales":["en","zh-Hans"],"Signatures":[{"Version":"18","Ordinal":0,"Hash":"fb872cdb26a2e0adeaf72b85776b21b0d485dda3c22b0d6fc862555a5e448df3","Text":"to_hex ( integer ) → text","Returns":"text","Payload":{"description":"Converts the number to its equivalent two's complement hexadecimal representation.","description_html":"Converts the number to its equivalent two's complement hexadecimal representation.","description_zh":"将数字转换为等价的十六进制补码表示。","description_zh_html":"将数字转换为等价的十六进制补码表示。","examples":[{"expr":"to_hex(2147483647)","result":"7fffffff"},{"expr":"to_hex(-1234)","result":"fffffb2e"}],"html":"\u003ccode class=\"function\"\u003eto_hex\u003c/code\u003e ( \u003ccode class=\"type\"\u003einteger\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003etext\u003c/code\u003e","returns":"text","text":"to_hex ( integer ) → text","zh_from":"same-version-manual"}},{"Version":"18","Ordinal":1,"Hash":"922245321d80cb86dfe315dd9df733b633696a8fb97922ce6051cd3db1572ad9","Text":"to_hex ( bigint ) → text","Returns":"text","Payload":{"description":"Converts the number to its equivalent two's complement hexadecimal representation.","description_html":"Converts the number to its equivalent two's complement hexadecimal representation.","description_zh":"将数字转换为等价的十六进制补码表示。","description_zh_html":"将数字转换为等价的十六进制补码表示。","examples":[{"expr":"to_hex(2147483647)","result":"7fffffff"},{"expr":"to_hex(-1234)","result":"fffffb2e"}],"html":"\u003ccode class=\"function\"\u003eto_hex\u003c/code\u003e ( \u003ccode class=\"type\"\u003ebigint\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003etext\u003c/code\u003e","returns":"text","text":"to_hex ( bigint ) → text","zh_from":"same-version-manual"}}],"Spellings":null,"SQLState":null,"Evidence":null}
