SPIDER_BG_DIRECT_SQL

You are viewing an old version of this article. View the current version here.

Syntax

SPIDER_BG_DIRECT_SQL('sql', 'tmp_table_list', 'parameters')

Description

A UDF installed with the Spider Storage Engine, this function is used to execute the SQL string sql in the background on the remote server, as defined in parameters. If any resultsets are returned, they are stored in the tmp_table_list.

The function returns the number of called UDF's if the SQL executes successfull, or 0 if the SQL fails.

Examples

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

Parameters

error_rw_mode

  • Description: Return empty results on network error. 0 : Return error at getting network error. 1 : Return 0 record at getting network error.
  • Default Table Value: 0
  • DSN Parameter Name: erwm

See also

Comments

Comments loading...
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.