{"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","derived_content_hash":"43a53342052677115b6b98b46fec47d692aac416538dec32950e0faffa9f484f","documentation_refresh":{"batch":"20261113","original_source_rev":"wiki-repair-20261023:584d1665967cb805124615577d731d910e03ca442740986f511c9b77616d26fb","versions":{"14":"14.25","15":"15.20","16":"16.16","17":"17.12","18":"18.7","19":"19rc2"}},"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"],"repair_provenance":{"original_source_revision":"wiki-repair-20261023:000da4459f59a4ddc9e83831b1250b74d9416935ff3e30b2496b36d8d151b254","receipt_sha256":"88cfad1f42e1b6607831e569413e9f5e3e07e2bce1a06947dd419743d8f1c914","repair":"wiki-repair-20261023"},"signature":"bit_and ( smallint ) → smallint","signature_count":4,"slug":"bit-and","source_rev":"wiki-repair-20261023:584d1665967cb805124615577d731d910e03ca442740986f511c9b77616d26fb","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":"wiki-repair-20261023:584d1665967cb805124615577d731d910e03ca442740986f511c9b77616d26fb","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","sha256":"31d3dcd36ef353484b4b3535f9f0d1cc239c3910146257fe5178f99b90b501e2","slug":"18"},"documentation_revision":{"inputs":[{"file":"functions-aggregate.html","kind":"same-version-reviewed-manual","locale":"en","sha256":"31d3dcd36ef353484b4b3535f9f0d1cc239c3910146257fe5178f99b90b501e2","version":"18.7"},{"file":"functions-aggregate.html","kind":"same-version-reviewed-manual","locale":"zh-Hans","sha256":"0bf7506d27b71666fc74840a21a8f77c8a92735174f1d05033865961722e457c","version":"18.7"}],"release":"18.7","runtime_remeasured":false,"source_revision":"pgdoc:b9f0e7232f60f380d642ac9b99226606c254b552"},"group":"aggregate","group_label":"聚合函数","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":"same-version-manual"},{"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":"same-version-manual"},{"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":"same-version-manual"},{"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":"same-version-manual"}],"translation_provenance":{"inputs":[{"kind":"current-pgdoc-translation","path":"/Users/vonng/pgsty/pgdoc/zh/18/html/functions-aggregate.html","sha256":"68da7af09e2749a855188bbbff99ae036fc7eece4e19b8e048baffd28aa3ca59"}],"kind":"same-version-pgdoc","locale":"zh-Hans","source_revision":"b1b500221dbe5437cfca004d6b04d3f6e422765d","version":"18"},"zh_from":"same-version-manual"},"ManualEvidence":{"doc":{"anchor":"FUNCTIONS-AGGREGATE-TABLE","file":"functions-aggregate.html","sha256":"31d3dcd36ef353484b4b3535f9f0d1cc239c3910146257fe5178f99b90b501e2","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"bit-and","SourceDatabase":"center","Version":"18","Locale":"en","Title":"bit_and","Summary":"Computes the bitwise AND of all non-null input values.","BodyHTML":"Computes the bitwise AND of all non-null input values.","SourceRevision":"wiki-repair-20261023:584d1665967cb805124615577d731d910e03ca442740986f511c9b77616d26fb","ContentHash":"1e35a6086cce9157f898713daa57a3067d14d29553b12b12e92644c2c7ed96ad","Payload":{"description":"Computes the bitwise AND of all non-null input values.","description_html":"Computes the bitwise AND of all non-null input values.","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":"same-version-manual"},{"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":"same-version-manual"},{"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":"same-version-manual"},{"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":"same-version-manual"}]}},"RequestedLocale":"en","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":"same-version-manual"}},{"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":"same-version-manual"}},{"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":"same-version-manual"}},{"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":"same-version-manual"}}],"Spellings":null,"SQLState":null,"Evidence":null}
