SPIDER_BG_DIRECT_SQL('sql', 'tmp_table_list', 'parameters')
Executes the given SQL statement in the background on the remote server, as defined in the parameters listing. If the query returns a result-set, it sttores the results in the given temporary table. When the given SQL statement executes successfully, this function returns the number of called UDF's. It returns 0
when the given SQL statement fails.
This function is a UDF installed with the Spider storage engine.
SELECT SPIDER_BG_DIRECT_SQL('SELECT * FROM example_table', '', 'srv "node1", port "8607"') AS "Direct Query"; +--------------+ | Direct Query | +--------------+ | 1 | +--------------+
error_rw_mode
0
: Return error on getting network error. 1
: Return 0 records on getting network error. 0
erwm
© 2019 MariaDB
Licensed under the Creative Commons Attribution 3.0 Unported License and the GNU Free Documentation License.
https://mariadb.com/kb/en/spider_bg_direct_sql/