{"Entry":{"collection":"func","key":"get-byte","name":"get_byte","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":["get_byte ( string, offset ) → int"],"removed":["get_byte ( string, offset ) → integer"]},"status":"changed","to":"8.1"},{"descriptions_changed":false,"doc_overhaul":true,"from":"12","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"13"}],"content_hash":"71c3990a9012dd696ac6fbb71f2f11e0f0b0d1b460ac5c8683872c0020fe2645","first_version":"7.3","group":"binarystring","group_label":"Binary String Functions And Operators","groups":["binarystring"],"imported_at":"2026-09-27T17:57:28.482834+08:00","last_version":"20","name":"get_byte","name_key":"get_byte","position":4009,"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"],"signature":"get_byte ( bytes bytea, n integer ) → integer","signature_count":1,"slug":"get-byte","source_rev":"b7bd9cda","summary":"Extracts n'th byte from binary string.","summary_zh":""}},"Definition":{"Collection":"func","Key":"get-byte","SourceDatabase":"center","Version":"18","SourceTable":"func","SourceKey":"get-byte","SourceRevision":"b7bd9cda","Facts":{"description":"Extracts n'th byte from binary string.","description_html":"Extracts \u003ca href=\"/docs/18/functions-binarystring.html#FUNCTIONS-ZEROBASED-NOTE\"\u003en'th\u003c/a\u003e byte from binary string.","description_zh":"","description_zh_html":"","doc":{"anchor":"FUNCTIONS-BINARYSTRING-OTHER","file":"functions-binarystring.html","slug":"18"},"group":"binarystring","group_label":"Binary String Functions And Operators","lang":"en","layout":"table-new","pages":["functions-binarystring.html"],"prose_only":false,"signatures":[{"description":"Extracts n'th byte from binary string.","description_html":"Extracts \u003ca href=\"/docs/18/functions-binarystring.html#FUNCTIONS-ZEROBASED-NOTE\"\u003en'th\u003c/a\u003e byte from binary string.","description_zh":"","description_zh_html":"","examples":[{"expr":"get_byte('\\x1234567890'::bytea, 4)","result":"144"}],"html":"\u003ccode class=\"function\"\u003eget_byte\u003c/code\u003e ( \u003cem class=\"parameter\"\u003e\u003ccode\u003ebytes\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003ebytea\u003c/code\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003en\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003einteger\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003einteger\u003c/code\u003e","returns":"integer","text":"get_byte ( bytes bytea, n integer ) → integer","zh_from":""}],"zh_from":""},"ManualEvidence":{"doc":{"anchor":"FUNCTIONS-BINARYSTRING-OTHER","file":"functions-binarystring.html","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"get-byte","SourceDatabase":"pgweb","Version":"18","Locale":"zh-Hans","Title":"get_byte","Summary":"从二进制字符串中提取编号为 n 的字节。","BodyHTML":"从二进制字符串中提取\u003ca href=\"/docs/18/functions-binarystring.html#FUNCTIONS-ZEROBASED-NOTE\" rel=\"nofollow\"\u003e编号为 n 的\u003c/a\u003e字节。\u003cpre\u003eget_byte ( bytes bytea, n integer ) → integer\u003c/pre\u003e从二进制字符串中提取\u003ca href=\"/docs/18/functions-binarystring.html#FUNCTIONS-ZEROBASED-NOTE\" rel=\"nofollow\"\u003e编号为 n 的\u003c/a\u003e字节。","SourceRevision":"ca936764","ContentHash":"1a758a4efba9426c48f82ebc03aec670b3916f2e3502ec5b6df398eb1d521514","Payload":{"description_zh":"从二进制字符串中提取编号为 n 的字节。","description_zh_html":"从二进制字符串中提取\u003ca href=\"/docs/18/functions-binarystring.html#FUNCTIONS-ZEROBASED-NOTE\"\u003e编号为 n 的\u003c/a\u003e字节。","signatures":[{"description_zh":"从二进制字符串中提取编号为 n 的字节。","description_zh_html":"从二进制字符串中提取\u003ca href=\"/docs/18/functions-binarystring.html#FUNCTIONS-ZEROBASED-NOTE\"\u003e编号为 n 的\u003c/a\u003e字节。","returns":"integer","text":"get_byte ( bytes bytea, n integer ) → integer","zh_from":"doc"}],"zh_from":"doc"}},"RequestedLocale":"zh-Hans","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":"374b8ce7ab96a71026e486c7d5ea64c853c8ab233ed7e184c3e91f823bdba548","Text":"get_byte ( bytes bytea, n integer ) → integer","Returns":"integer","Payload":{"description":"Extracts n'th byte from binary string.","description_html":"Extracts \u003ca href=\"/docs/18/functions-binarystring.html#FUNCTIONS-ZEROBASED-NOTE\"\u003en'th\u003c/a\u003e byte from binary string.","description_zh":"","description_zh_html":"","examples":[{"expr":"get_byte('\\x1234567890'::bytea, 4)","result":"144"}],"html":"\u003ccode class=\"function\"\u003eget_byte\u003c/code\u003e ( \u003cem class=\"parameter\"\u003e\u003ccode\u003ebytes\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003ebytea\u003c/code\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003en\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003einteger\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003einteger\u003c/code\u003e","returns":"integer","text":"get_byte ( bytes bytea, n integer ) → integer","zh_from":""}}],"Spellings":null,"SQLState":null,"Evidence":null}
