{"Entry":{"collection":"func","key":"bit-and","name":"bit_and","aliases":[],"metadata":{"changed_in":[],"changes":[{"descriptions_changed":false,"doc_overhaul":false,"from":"7.4","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"added","to":"8.0"},{"descriptions_changed":false,"doc_overhaul":true,"from":"12","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"13"}],"content_hash":"8c984718284557fba548d938036ae628898e9b95a20a868d39bab6728551cc42","first_version":"8.0","group":"aggregate","group_label":"Aggregate Functions","groups":["aggregate"],"imported_at":"2026-09-27T17:57:28.900409+08:00","last_version":"20","name":"bit_and","name_key":"bit_and","position":21003,"present_in":["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":"bit_and ( smallint ) → smallint","signature_count":4,"slug":"bit-and","source_rev":"b7bd9cda","summary":"Computes the bitwise AND of all non-null input values.","summary_zh":""}},"Definition":{"Collection":"func","Key":"bit-and","SourceDatabase":"center","Version":"18","SourceTable":"func","SourceKey":"bit-and","SourceRevision":"b7bd9cda","Facts":{"description":"Computes the bitwise AND of all non-null input values.","description_html":"Computes the bitwise AND of all non-null input values.","description_zh":"","description_zh_html":"","doc":{"anchor":"FUNCTIONS-AGGREGATE-TABLE","file":"functions-aggregate.html","slug":"18"},"group":"aggregate","group_label":"Aggregate Functions","lang":"en","layout":"table-new","pages":["functions-aggregate.html"],"prose_only":false,"signatures":[{"description":"Computes the bitwise AND of all non-null input values.","description_html":"Computes the bitwise AND of all non-null input values.","description_zh":"","description_zh_html":"","examples":[],"html":"\u003ccode class=\"function\"\u003ebit_and\u003c/code\u003e ( \u003ccode class=\"type\"\u003esmallint\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003esmallint\u003c/code\u003e","returns":"smallint","text":"bit_and ( smallint ) → smallint","zh_from":""},{"description":"Computes the bitwise AND of all non-null input values.","description_html":"Computes the bitwise AND of all non-null input values.","description_zh":"","description_zh_html":"","examples":[],"html":"\u003ccode class=\"function\"\u003ebit_and\u003c/code\u003e ( \u003ccode class=\"type\"\u003einteger\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003einteger\u003c/code\u003e","returns":"integer","text":"bit_and ( integer ) → integer","zh_from":""},{"description":"Computes the bitwise AND of all non-null input values.","description_html":"Computes the bitwise AND of all non-null input values.","description_zh":"","description_zh_html":"","examples":[],"html":"\u003ccode class=\"function\"\u003ebit_and\u003c/code\u003e ( \u003ccode class=\"type\"\u003ebigint\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003ebigint\u003c/code\u003e","returns":"bigint","text":"bit_and ( bigint ) → bigint","zh_from":""},{"description":"Computes the bitwise AND of all non-null input values.","description_html":"Computes the bitwise AND of all non-null input values.","description_zh":"","description_zh_html":"","examples":[],"html":"\u003ccode class=\"function\"\u003ebit_and\u003c/code\u003e ( \u003ccode class=\"type\"\u003ebit\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003ebit\u003c/code\u003e","returns":"bit","text":"bit_and ( bit ) → bit","zh_from":""}],"zh_from":""},"ManualEvidence":{"doc":{"anchor":"FUNCTIONS-AGGREGATE-TABLE","file":"functions-aggregate.html","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"bit-and","SourceDatabase":"pgweb","Version":"18","Locale":"zh-Hans","Title":"bit_and","Summary":"计算所有非空输入值的按位与。","BodyHTML":"计算所有非空输入值的按位与。\u003cpre\u003ebit_and ( smallint ) → smallint\u003c/pre\u003e计算所有非空输入值的按位与。\u003cpre\u003ebit_and ( integer ) → integer\u003c/pre\u003e计算所有非空输入值的按位与。\u003cpre\u003ebit_and ( bigint ) → bigint\u003c/pre\u003e计算所有非空输入值的按位与。\u003cpre\u003ebit_and ( bit ) → bit\u003c/pre\u003e计算所有非空输入值的按位与。","SourceRevision":"ca936764","ContentHash":"3acf9cb65d6674337784bdcc2269a5029aa207e8037b23783ac98a8b04fc2c64","Payload":{"description_zh":"计算所有非空输入值的按位与。","description_zh_html":"计算所有非空输入值的按位与。","signatures":[{"description_zh":"计算所有非空输入值的按位与。","description_zh_html":"计算所有非空输入值的按位与。","returns":"smallint","text":"bit_and ( smallint ) → smallint","zh_from":"doc"},{"description_zh":"计算所有非空输入值的按位与。","description_zh_html":"计算所有非空输入值的按位与。","returns":"integer","text":"bit_and ( integer ) → integer","zh_from":"doc"},{"description_zh":"计算所有非空输入值的按位与。","description_zh_html":"计算所有非空输入值的按位与。","returns":"bigint","text":"bit_and ( bigint ) → bigint","zh_from":"doc"},{"description_zh":"计算所有非空输入值的按位与。","description_zh_html":"计算所有非空输入值的按位与。","returns":"bit","text":"bit_and ( bit ) → bit","zh_from":"doc"}],"zh_from":"doc"}},"RequestedLocale":"zh-Hans","Fallback":false,"Versions":["10","11","12","13","14","15","16","17","18","19","20","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":"427b6c596fb76b325c1dea544d0516c4f6480a899a45c3c03febf1bd570063f9","Text":"bit_and ( smallint ) → smallint","Returns":"smallint","Payload":{"description":"Computes the bitwise AND of all non-null input values.","description_html":"Computes the bitwise AND of all non-null input values.","description_zh":"","description_zh_html":"","examples":[],"html":"\u003ccode class=\"function\"\u003ebit_and\u003c/code\u003e ( \u003ccode class=\"type\"\u003esmallint\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003esmallint\u003c/code\u003e","returns":"smallint","text":"bit_and ( smallint ) → smallint","zh_from":""}},{"Version":"18","Ordinal":1,"Hash":"4aeb7f71e66f19284f3b823aee6a5b3ffec5f005ec203442c3158029ad50fd73","Text":"bit_and ( integer ) → integer","Returns":"integer","Payload":{"description":"Computes the bitwise AND of all non-null input values.","description_html":"Computes the bitwise AND of all non-null input values.","description_zh":"","description_zh_html":"","examples":[],"html":"\u003ccode class=\"function\"\u003ebit_and\u003c/code\u003e ( \u003ccode class=\"type\"\u003einteger\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003einteger\u003c/code\u003e","returns":"integer","text":"bit_and ( integer ) → integer","zh_from":""}},{"Version":"18","Ordinal":2,"Hash":"299cefb8f1e950dca8dadf389e307d58a46139b4f768544d7accca5cd9eded7f","Text":"bit_and ( bigint ) → bigint","Returns":"bigint","Payload":{"description":"Computes the bitwise AND of all non-null input values.","description_html":"Computes the bitwise AND of all non-null input values.","description_zh":"","description_zh_html":"","examples":[],"html":"\u003ccode class=\"function\"\u003ebit_and\u003c/code\u003e ( \u003ccode class=\"type\"\u003ebigint\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003ebigint\u003c/code\u003e","returns":"bigint","text":"bit_and ( bigint ) → bigint","zh_from":""}},{"Version":"18","Ordinal":3,"Hash":"0279855d4404756ad47986db300a9ee6d805006aa0600628cc88fd00cacc26db","Text":"bit_and ( bit ) → bit","Returns":"bit","Payload":{"description":"Computes the bitwise AND of all non-null input values.","description_html":"Computes the bitwise AND of all non-null input values.","description_zh":"","description_zh_html":"","examples":[],"html":"\u003ccode class=\"function\"\u003ebit_and\u003c/code\u003e ( \u003ccode class=\"type\"\u003ebit\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003ebit\u003c/code\u003e","returns":"bit","text":"bit_and ( bit ) → bit","zh_from":""}}],"Spellings":null,"SQLState":null,"Evidence":null}
