Returns a string of characters with the values of the array elements separated by the indicated
separator.
1 array.join
<array.join separator='separator'>
<array /> !
</array.join>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
Aseparator | string | String which is used to separate the elements from array. |
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Earray | array | The array object whose elements will be joined in the resulting string. |
Returns | |
---|---|
Type | Description |
String | Returns a string with the array elements separated by the separator. |
Example
Print a string of SQL Where to search the array elements.
Copy
<xsql-script name='array_join_test'> <body> <array name='m_serialid'> <string>10</string> <string>40</string> <string>68</string> </array> <println><string>tabanme.colname IN (<array.join separator=','><m_serialid /></array.join>)</string></println> </body> </xsql-script>