Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
将嵌套数组展平一层。
array_flatten(param)
param
mysql> SELECT array_flatten([[1, 2], [1, 4]]) as res; +-----------+ | res | +-----------+ | [1,2,1,4] | +-----------+
mysql> SELECT array_flatten([[[1],[2]], [[3],[4]]]) as res; +-------------------+ | res | +-------------------+ | [[1],[2],[3],[4]] | +-------------------+