Returns a ResultSet from an array.
 

1 array.toResultSet

<array.toResultSet>
    <array /> ?
</array.toResultSet>
Example

Transform an array in a ResultSet.

Copy
<xsql-script name='test_array'>
    <body>
        <array name='a'>
            <string>Barcelona</string>
            <string>Madrid</string>
            <string>Valencia</string>
        </array>

        <println>
            <array.toResultSet>
                <a />
            </array.toResultSet>
        </println>
    </body>
</xsql-script>

Shows the following result

Copy
+---------+
|col1     |
+---------+
|Barcelona|
|Madrid   |
|Valencia |
+---------+