1 grid.execute

This tag executes the SQL provided on nodes of the grid.

<grid.execute
    name='name'
    timeout='timeout'
>
    <select /> ?
    <nativesql /> ?
</grid.execute>
Example
Copy
<xsql-script>
    <body>
        <grid.execute name='grid_demo'>
            <nativesql>
create table t_person(
    person_id     char(10),
    person_name   char(10),
    person_gender char(10)
)
          </nativesql>
        </grid.execute>

        <print>
            <grid.execute name='grid_demo'>
                <nativesql>CREATE UNIQUE INDEX IF NOT EXISTS p_t_person ON t_person(person_id)</nativesql>
            </grid.execute>
        </print>
    </body>
</xsql-script>
+---------------+-------+-------+
|_node          |_count |_error |
|char           |integer|char   |
|visible        |visible|visible|
+---------------+-------+-------+
|demo_apps_all  |      0|       |
|demo_chinook_i |      0|       |
|demo_foodmart_i|      0|       |
+---------------+-------+-------+