{"Entry":{"collection":"func","key":"ntile","name":"ntile","aliases":[],"metadata":{"changed_in":[],"changes":[{"descriptions_changed":false,"doc_overhaul":false,"from":"8.3","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"added","to":"8.4"},{"descriptions_changed":false,"doc_overhaul":true,"from":"12","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"13"}],"content_hash":"eb793edf2a120752477f8824a1ac049b5c045a6571f319f833b2d55caba37524","first_version":"8.4","group":"window","group_label":"Window Functions","groups":["window"],"imported_at":"2026-09-27T17:57:29.008749+08:00","last_version":"20","name":"ntile","name_key":"ntile","position":22005,"present_in":["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":"ntile ( num_buckets integer ) → integer","signature_count":1,"slug":"ntile","source_rev":"b7bd9cda","summary":"Returns an integer ranging from 1 to the argument value, dividing the partition as equally as possible.","summary_zh":""}},"Definition":{"Collection":"func","Key":"ntile","SourceDatabase":"center","Version":"18","SourceTable":"func","SourceKey":"ntile","SourceRevision":"b7bd9cda","Facts":{"description":"Returns an integer ranging from 1 to the argument value, dividing the partition as equally as possible.","description_html":"Returns an integer ranging from 1 to the argument value, dividing the partition as equally as possible.","description_zh":"","description_zh_html":"","doc":{"anchor":"FUNCTIONS-WINDOW-TABLE","file":"functions-window.html","slug":"18"},"group":"window","group_label":"Window Functions","lang":"en","layout":"table-new","pages":["functions-window.html"],"prose_only":false,"signatures":[{"description":"Returns an integer ranging from 1 to the argument value, dividing the partition as equally as possible.","description_html":"Returns an integer ranging from 1 to the argument value, dividing the partition as equally as possible.","description_zh":"","description_zh_html":"","examples":[],"html":"\u003ccode class=\"function\"\u003entile\u003c/code\u003e ( \u003cem class=\"parameter\"\u003e\u003ccode\u003enum_buckets\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003einteger\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003einteger\u003c/code\u003e","returns":"integer","text":"ntile ( num_buckets integer ) → integer","zh_from":""}],"zh_from":""},"ManualEvidence":{"doc":{"anchor":"FUNCTIONS-WINDOW-TABLE","file":"functions-window.html","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"ntile","SourceDatabase":"pgweb","Version":"18","Locale":"zh-Hans","Title":"ntile","Summary":"返回从 1 到参数值的整数，将分区尽可能均等地划分。","BodyHTML":"返回从 1 到参数值的整数，将分区尽可能均等地划分。\u003cpre\u003entile ( num_buckets integer ) → integer\u003c/pre\u003e返回从 1 到参数值的整数，将分区尽可能均等地划分。","SourceRevision":"ca936764","ContentHash":"d33b9df4185fc1bf8c9ec5a7673c23efac42d2fd7d9d173edbeed4b77363472b","Payload":{"description_zh":"返回从 1 到参数值的整数，将分区尽可能均等地划分。","description_zh_html":"返回从 1 到参数值的整数，将分区尽可能均等地划分。","signatures":[{"description_zh":"返回从 1 到参数值的整数，将分区尽可能均等地划分。","description_zh_html":"返回从 1 到参数值的整数，将分区尽可能均等地划分。","returns":"integer","text":"ntile ( num_buckets 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","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":"f8bc647a271500cecca8e3e5e330d0ff0eaad92a81ec27ddc5f5be193621c5ca","Text":"ntile ( num_buckets integer ) → integer","Returns":"integer","Payload":{"description":"Returns an integer ranging from 1 to the argument value, dividing the partition as equally as possible.","description_html":"Returns an integer ranging from 1 to the argument value, dividing the partition as equally as possible.","description_zh":"","description_zh_html":"","examples":[],"html":"\u003ccode class=\"function\"\u003entile\u003c/code\u003e ( \u003cem class=\"parameter\"\u003e\u003ccode\u003enum_buckets\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003einteger\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003einteger\u003c/code\u003e","returns":"integer","text":"ntile ( num_buckets integer ) → integer","zh_from":""}}],"Spellings":null,"SQLState":null,"Evidence":null}
