ClickHouse/docs/zh/query_language/functions/ext_dict_functions.md
Ivan Blinkov 2e1f6bc56d
[experimental] add "es" docs language as machine translated draft (#9787)
* replace exit with assert in test_single_page

* improve save_raw_single_page docs option

* More grammar fixes

* "Built from" link in new tab

* fix mistype

* Example of include in docs

* add anchor to meeting form

* Draft of translation helper

* WIP on translation helper

* Replace some fa docs content with machine translation

* add normalize-en-markdown.sh

* normalize some en markdown

* normalize some en markdown

* admonition support

* normalize

* normalize

* normalize

* support wide tables

* normalize

* normalize

* normalize

* normalize

* normalize

* normalize

* normalize

* normalize

* normalize

* normalize

* normalize

* normalize

* normalize

* lightly edited machine translation of introdpection.md

* lightly edited machhine translation of lazy.md

* WIP on translation utils

* Normalize ru docs

* Normalize other languages

* some fixes

* WIP on normalize/translate tools

* add requirements.txt

* [experimental] add es docs language as machine translated draft

* remove duplicate script

* Back to wider tab-stop (narrow renders not so well)
2020-03-21 07:11:51 +03:00

1.7 KiB
Raw Blame History

字典函数

有关连接和配置外部词典的信息,请参阅外部词典

dictGetUInt8, dictGetUInt16, dictGetUInt32, dictGetUInt64

dictGetInt8, dictGetInt16, dictGetInt32, dictGetInt64

dictGetFloat32, dictGetFloat64

dictGetDate, dictGetDateTime

dictGetUUID

dictGetString

dictGetT('dict_name', 'attr_name', id)

  • 使用id键获取dict_name字典中attr_name属性的值。dict_nameattr_name是常量字符串。id必须是UInt64。 如果字典中没有id键,则返回字典描述中指定的默认值。

dictGetTOrDefault

dictGetTOrDefault('dict_name', 'attr_name', id, default)

dictGetT函数相同,但默认值取自函数的最后一个参数。

dictIsIn

dictIsIn ('dict_name', child_id, ancestor_id)

  • 对于dict_name分层字典查找child_id键是否位于ancestor_id或匹配ancestor_id。返回UInt8。

dictGetHierarchy

dictGetHierarchy('dict_name', id)

  • 对于dict_name分层字典返回从id开始并沿父元素链继续的字典键数组。返回ArrayUInt64

dictHas

dictHas('dict_name', id)

  • 检查字典是否存在指定的id。如果不存在则返回0;如果存在则返回1。

来源文章