This is a read-only copy of the MariaDB Knowledgebase generated on 2024-12-22. For the latest, interactive version please visit https://mariadb.com/kb/.

SPIDER_BG_DIRECT_SQL

Sintassi

SPIDER_BG_DIRECT_SQL('sql', 'lista_tab_temp', 'parametri')

Spiegazione

Una UDF installata con lo Storage Engine Spider. Serve a eseguire la stringa SQL sql in background sul server remoto, come definito in parametri. Se sono restituiti dei set di risultati, sono immagazzinati in lista_tab_temp.

La funzione restituisce il numero di UDF chiamate se la stringa SQL è eseguita con successo, o 0 se fallisce.

Esempi

SELECT SPIDER_BG_DIRECT_SQL('SELECT * FROM s', '', 'srv "node1", port "8607"');
+-------------------------------------------------------------------------+
| SPIDER_BG_DIRECT_SQL('SELECT * FROM s', '', 'srv "node1", port "8607"') |
+-------------------------------------------------------------------------+
|                                                                       1 |
+-------------------------------------------------------------------------+

Vedi anche

Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.